forked from openpnp/openpnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 2.57 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
language: java
sudo: false
jdk:
- oraclejdk8
env:
global:
- secure: Y5WwLvftJ/7KdL/MYBPuPHwzgrKbAn8QNBXCAKiZUvw80sHtrrjrCgD68UVfikl/m1v/EBnBOkMg8b38ZCPo0YON4E2jIRjOl58GH0NQ5fS58Cp6LPNMmjlSJTEtEpJak7P7ADxwWFXm4AVKeYS04mF2TbwasVs4nMYddCv8QYY=
- secure: lCc5UYBY5j3UYCPWfLGFj8NaMkiPyIGHKL6XfIFIW/pq6f7NN4xITSgR78iDiPawo+7SVMkxUHWM7MUimGTaAieAHSBzY+DdqlmPp5JvBWIw9RWou7Z3parRRQzUsTC65s+clr4VWa97nR5eNtb5FEvKvqCYZa2G0jjR9LabGYQ=
before_install:
# Check for illegal uses of reference code in non-reference code.
- 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://s3-us-west-2.amazonaws.com/openpnp/install4j_unix_6_0_4.tar.gz
- tar -xzf install4j_unix_6_0_4.tar.gz
- ./install4j6/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`
- ./install4j6/bin/install4jc -r $VERSION -d installers -D mediaFileVersion=$TRAVIS_BRANCH OpenPnP.install4j
- mv installers/updates.xml installers/updates-$TRAVIS_BRANCH.xml
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: oraclejdk8
branch:
- develop
- master
- test
after_deploy:
- git config --global user.email "jason@vonnieda.org"
- 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