.travis.yml 1.9 KB
Newer Older
M
Mathieu Bastian 已提交
1 2 3 4 5 6 7
language: java
jdk:
  - oraclejdk8
branches:
  only:
    - master

8 9 10 11 12 13 14
before_install:
  # Update APT
  - sudo apt-get update
 
  # Install genisoimage (dmg creation tool)
  - sudo apt-get install genisoimage

15 16 17 18 19 20 21
  # 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

22
install:
23
  # Install InnoSetup
M
Mathieu Bastian 已提交
24
  - 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
25 26
  - chmod +x ./innoinstall.sh
  - ./innoinstall.sh
M
Mathieu Bastian 已提交
27
  - printf '#!/bin/sh\nunset DISPLAY\nscriptname=$1\n[ -f \"$scriptname\" ] && scriptname=$(winepath -w \"$scriptname\")\nwine \"C:\inno\ISCC.exe\" \"$scriptname\" \"/q\"' > iscc
28 29 30
  - chmod +x ./iscc
  - sudo cp ./iscc /usr/local/bin/iscc

31 32 33 34 35 36
  # 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

37
  # Setup Maven's settings.xml
38
  - echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server><server><id>netbeans</id><configuration><httpConfiguration><get><readTimeout>300000</readTimeout><connectionTimeout>300000</connectionTimeout></get></httpConfiguration></configuration></server></servers></settings>" > ~/settings.xml
39 40

script:
41
  - travis_retry mvn -q --settings ~/settings.xml -Djava.awt.headless=true -Dgpg.skip=true clean deploy -P deployment,create-dmg,create-exe