forked from NASAWorldWind/WorldWindJava
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (46 loc) · 2.7 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
# Directs the Travis CI build service for World Wind Java
# For more information see https://docs.travis-ci.com/user/customizing-the-build/
# Required to install the jq JSON filter used to parse GitHub API results
dist: trusty
sudo: required
# Set up to run the Java build script per the Travis CI documentation
language: java
jdk:
# Configure the build to use Oracle JDK 8
- oraclejdk8
before_install:
# Decrypt and un-archive the files wwstore and keystore.properties which are used to sign the Web Start distribution
- openssl aes-256-cbc -K $encrypted_1799be77f389_key -iv $encrypted_1799be77f389_iv -in keystore.tar.enc -out keystore.tar -d
- tar -xf keystore.tar
# Install Apache ANT v1.9.7 in order to get the most ANT junit features required by the World Wind build script. As of
# December 2016 the Travis CI environment provided ANT v1.8.x.
- curl -o ${HOME}/apache-ant-1.9.7-bin.tar.gz https://www.apache.org/dist/ant/binaries/apache-ant-1.9.7-bin.tar.gz
- tar -xf ${HOME}/apache-ant-1.9.7-bin.tar.gz -C ${HOME}
- export PATH=${HOME}/apache-ant-1.9.7/bin:${PATH}
before_script:
# Install the jq shell filter so we can extract data from GitHub API JSON results
# See apt configuration: https://docs.travis-ci.com/user/ci-environment/#apt-configuration
- sudo apt-get install -qq jq
- jq --version
# Ensure scripts can be executed (required if scripts are authored in Windows)
- chmod +x ./travis/*.sh
# Use xvfb to run tests that require a GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
# Build the project
- ant build
after_success:
# Push the daily tag when this build is a cron job
- ./travis/add_daily_tag.sh
# Push build artifacts to GitHub releases, push documentation and Web Start distribution to GitHub pages
- ./travis/update_release.sh
- ./travis/update_website.sh
notifications:
# Notify the World Wind services mailing list on every build
email:
recipients:
secure: OM6MdC79yU5Q7DCaYeABrRf2feKRvJ8UsYzs9YtmMdiwR2a2Aw6yPUunp8EtGD2/SzI/kJibeL6SMrbgI9LZRDnSM6PtpxzC023ogw02WfYegCUc10j5cN6GLzdV81ZTu8FxKvfyQMAEqsgCibHPRyBTk98NbwKHzsvxZm+wjK1hNEP76J05dBn5MjOMdTPtXsy0zS/iyPq76Y8BN/+jsPn5jUY3rTeOvmt5aCW6rXyjBeoJvsyjhuxacTnGUif334LE5yzVSKv4Nmy8UQRhKTDn/BuFikaMtEi4xKpgoQyc7A6wNG0QlxsYY9yRk6dl952q4PHz3xoXJ8LApb8ymbMxXHceOdipecwAWTmlfZPv6EMOrjITPpygtVZjz23QZm07/HMEiE/4NpIE4/ie0kiIPH59qEpKfNQ72iyWS5Zg4FD+l8ofqpGUWLlBaLzGEl6XgXH6oiFm//+wfSI9OWCZKDEYK6P24X0Ncv1Gi2zY2wVZsajqesXiWRCBEEFmjVQ1iNLX7AYsZQMd3ah8++2o3/Ti5eDagPsAVWpR8ULHFNk2+R6H7OQ6acHYVWnbzYuvIkzXYMNVvQ6PZRUvbJNdfwBw15V+s1D0PvPs1Nbc/Jq7RgWMEMUnqWNxFRXEhhbjmV/i2keSA1QPBxADSUAIkZNNkzCD+3KL/rRFDug=
on_success: always
on_failure: always