language: java jdk: - oraclejdk8 branches: only: - master before_install: # Update APT - sudo apt-get update # Install genisoimage (dmg creation tool) - sudo apt-get install genisoimage # Prepare environemnt for Inno Setup - sudo add-apt-repository --yes ppa:arx/release - sudo apt-get update -d - sudo apt-get install -y -q innoextract wine - wine --version - innoextract --version install: # Install InnoSetup - printf '#!/bin/bash\nrm -rf /tmp/inno\nmkdir /tmp/inno\ncd /tmp/inno\nwget -O is.exe http://files.jrsoftware.org/is/5/isetup-5.5.5.exe\ninnoextract is.exe\nmkdir -p ~/\".wine/drive_c/inno\"\ncp -a app/* ~/\".wine/drive_c/inno\"' > innoinstall.sh - chmod +x ./innoinstall.sh - ./innoinstall.sh - printf '#!/bin/sh\nunset DISPLAY\nscriptname=$1\n[ -f \"$scriptname\" ] && scriptname=$(winepath -w \"$scriptname\")\nwine \"C:\inno\ISCC.exe\" \"$scriptname\" \"/q\"' > iscc - chmod +x ./iscc - sudo cp ./iscc /usr/local/bin/iscc # Install ReplaceVistaIcon.exe - cp modules/application/src/main/app-resources/ReplaceVistaIcon.exe ~/".wine/drive_c/ReplaceVistaIcon.exe" - printf '#!/bin/sh\nunset DISPLAY\nexecutable=$1\niconfile=$2\niconid=$3\nwine "C:\ReplaceVistaIcon.exe" "$executable" "$iconfile" "$iconid"' > replacevistaicon - chmod +x ./replacevistaicon - sudo cp ./replacevistaicon /usr/local/bin/replacevistaicon # Setup Maven's settings.xml - echo "ossrh\${env.OSSRH_USER}\${env.OSSRH_PASS}netbeans300000300000" > ~/settings.xml script: - travis_retry mvn -q --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true clean deploy -P deployment,create-dmg,create-exe