forked from Unidata/thredds
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (46 loc) · 2.32 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
language: java
# Previously, we were seeing a failure in :it:appBeforeIntegrationTest:
# Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 137
# No output has been received in the last 10 minutes, this potentially indicates a stalled build or
# something wrong with the build itself. The build has been terminated.
# This thread indicates that running the job on Travis's container-based infrastructure may be causing resource issues:
# https://github.com/travis-ci/travis-ci/issues/5582
# Setting sudo to "true" forces the job to run on Travis's standard infrastructure, which seems to fix the problem.
sudo: true
env:
global:
# Must specify libnetcdf location this way; the 'jna.library.path' system property does not work.
# I believe it's because JNA is smart enough to find libnetcdf using that prop, but then libhdf5 is required.
# That dependency is searched for by the *OS*, not by JNA, and it knows nothing about 'jna.library.path'.
# Ordinarily, this wouldn't be a problem because libnetcdf would include an rpath reference to libhdf5, but the
# binaries were built on a different system than the Travis VMs, so it doesn't work.
- LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/travis/lib/ubuntu-14.04.5-amd64"
# For artifact upload. It's important to use relative paths here; otherwise, the entire absolute path would
# become part of the S3 URL.
- TEST_REPORT_DIR="build/reports/allTests"
- TDS_LOGS_DIR="tds/src/test/content/thredds/logs"
addons:
# See the note in travis/after_script.sh about the environment variables that Travis artifact uploading requires.
artifacts:
bucket: unidata-tds
paths:
- $TEST_REPORT_DIR
- $TDS_LOGS_DIR
target_paths: Travis/$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
jdk:
- oraclejdk8
# Skip the installation step entirely; we don't need it for Gradle builds.
# https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step
install: true
script:
- travis/script.sh
after_script:
- travis/after_script.sh
# See https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/