Asqatasun / Contrast-Finder

Contrast-Finder finds correct color contrasts (background / foreground) for web accessibility (a11y, WCAG, RGAA). https://app.contrast-finder.org
GNU Affero General Public License v3.0
56 stars 18 forks source link

Automatically create a debian package at the maven build #82

Closed dzc34 closed 7 years ago

dzc34 commented 7 years ago

Previous discussion with @RyDroid: https://github.com/Asqatasun/Asqatasun/issues/158

It is a "feature" proposition. There is no Debian package and even no way to build one. It would be great to have a way to build (...)

similar issue but more complete #81 Debian package and submit it to Debian

maven plugin Jdeb

maven plugin to create Debian packages from Java builds

testing in debian branch : it's works, but not ready for submit it to Debian repository (and not easy) https://github.com/Asqatasun/Contrast-Finder/blob/debian/webapp/pom.xml#L252

git clone https://github.com/Asqatasun/Contrast-Finder
cd Contrast-finder
git checkout develop
mvn clean install
cd webapp/target

# check package
apt-get install    lintian      
dpkg --contents *.deb 
lintian -Iv *.deb 
lintian -i *.deb 

# install package
dpkg -i *.deb
apt-get -f install

      # in your browser
      # http://localhost:8080/contrast-finder/

# See package information
dpkg -l tomcat7 libspring-instrument-java contrast-finder-webapp

# Check directories
ls -l /etc/contrast-finder
ls -l /var/log/contrast-finder/
ls -l /var/lib/tomcat7/webapps
ls -l /usr/share/tomcat7/lib/spring3-instrument-tomcat* 

# uninstall  contrast-finder
dpkg  --purge  contrast-finder-webapp

    # or
    # uninstall contrast-finder + dependencies
    dpkg  --purge   contrast-finder-webapp
    apt-get remove tomcat7 libspring-instrument-java 
    apt-get autoremove
dzc34 commented 7 years ago

reopened:

[INFO] hsv ................................................ SUCCESS [  3.185 s]
[INFO] contrast-finder-webapp ............................. FAILURE [  6.566 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.vafer:jdeb:1.5:jdeb (default) on project webapp: 
Failed to create debian package /home/travis/build/Asqatasun/Contrast-Finder/webapp/target/contrast-finder_0.6.1-dev.deb: 
Could not create deb package: Data source not found : 
/home/travis/build/Asqatasun/Contrast-Finder/webapp/target/classes/conf/contrast-finder.log -> [Help 1]