forked from openpnp/openpnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (57 loc) · 2.86 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: java
sudo: false
dist: bionic
jdk:
- openjdk8
- openjdk9
- openjdk10
- openjdk11
env:
global:
# INSTALL4J_LICENSE_KEY
- secure: Yg0BtZOWIGXE973cYjaByiXv2xMOpqsh8pdP8Fs64skdJoHKYP2nTHVBZNT9INswH+hHzGky6vvnX/SrQuwspkS/XItt8U08YezeyQs+YAtr3crwiRyoQLWXt61bf5/j9skXEmD5geh+JuzustWe8+qkFstgQ0k72V0k8guAggw=
# GH_PAGES_TOKEN
- secure: lCc5UYBY5j3UYCPWfLGFj8NaMkiPyIGHKL6XfIFIW/pq6f7NN4xITSgR78iDiPawo+7SVMkxUHWM7MUimGTaAieAHSBzY+DdqlmPp5JvBWIw9RWou7Z3parRRQzUsTC65s+clr4VWa97nR5eNtb5FEvKvqCYZa2G0jjR9LabGYQ=
before_install:
# Check for illegal uses of reference code in non-reference code.
# This is causing problems in the test branch, commenting it out temporarily. 2017-09-01
#- if grep -ri "import.*machine\.reference" src/main/java --exclude-dir src/main/java/org/openpnp/machine/reference --exclude-dir src/main/java/org/openpnp/machine/openbuilds; then echo 'References to machine classes were found in non-machine code. See the output above for the problematic imports.' && exit 1; fi
before_deploy:
- wget https://openpnp.s3-us-west-2.amazonaws.com/install4j_unix_8_0_6.tar.gz
- tar -xzf install4j_unix_8_0_6.tar.gz
- ./install4j8.0.6/bin/install4jc -L $INSTALL4J_LICENSE_KEY
- mvn package
- wget https://s3-us-west-2.amazonaws.com/openpnp/macosx-amd64-1.8.0_131.tar.gz
- wget https://s3-us-west-2.amazonaws.com/openpnp/windows-amd64-1.8.0_131.tar.gz
- wget https://s3-us-west-2.amazonaws.com/openpnp/windows-x86-1.8.0_131.tar.gz
- VERSION=`java -jar target/openpnp-gui-0.0.1-alpha-SNAPSHOT.jar --version`
- ./install4j8.0.6/bin/install4jc -r $VERSION -d installers -D mediaFileVersion=$TRAVIS_BRANCH OpenPnP.install4j
- mv installers/updates.xml installers/updates-$TRAVIS_BRANCH.xml
- mkdir -p installers/$TRAVIS_BRANCH/$VERSION
- cp installers/OpenPnP* installers/$TRAVIS_BRANCH/$VERSION
deploy:
provider: s3
access_key_id:
secure: QzQReumydxD1NJzCrCSE5iLDONzJtAYg4VEK9yV6ySyLd92yNIaU7jBayGjv0936Ufsbq0xG/wpyrPoUhC0IJ9zzNiXJ7biZtFH2T2PlWN2j9MsrZJF7XOyx028IMlUSkTg0VvjewwYDbf35tAUgzwZAC2eWWtkZ44PEaCbRX3A=
secret_access_key:
secure: C4e7rAxiTBUQhDiZ5zs0FyzTNtRD+f+egrxhB3TBFi8jImEKbQ8hCr84TmSc0rR/ZdPEkjG0Z1gX/x1fKjrBI2tf2D6CyYjCYt9ZaHnMH0AL31yZ5H8FRyxSGM6uFjgHLbNXqaAvg2sNlPVUT4mfEmcJ+mDF1Yp/Jli+532g2Lc=
skip_cleanup: true
bucket: openpnp
region: us-west-2
local_dir: installers
on:
jdk: openjdk8
branch:
- develop
- master
- test
after_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Jason von Nieda"
- git clone --quiet --branch=gh-pages https://${GH_PAGES_TOKEN}@github.com/openpnp/openpnp gh-pages
- cd gh-pages
- git rm --ignore-unmatch -rf $TRAVIS_BRANCH
- javadoc -sourcepath ../src/main/java -subpackages org.openpnp -d $TRAVIS_BRANCH || true
- git add -f .
- git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
- git push -fq origin gh-pages