forked from chirino/lmdbjni
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
48 lines (40 loc) · 1.47 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
language: java
os:
- linux
- osx
branches:
except:
- /.*test$/
env:
global:
- secure: "HZ7J4B0hSDB2H6ljNXYp7LKgFAA3TUFF22qlSVBiI8Qb3dChwM6t/sNVhQnMKfTREOinpvLOt9rDwHBz1ysPtP+r0iqQyDo5GQDTyTXkFskQFO4myelOamZguJQu+bNTQgKHoF1vbFTysC5mpcInYhcu5veLkgH1PRgNFQcqles="
- secure: "CVY1NoFW3e3Hfvgvu2mMC4vaQdmPmyHvuFzqqGlpdH3fdMdqG1xzHi+oXv0gK3tbxB0JNfXXvIiNXpGZ06nGcvQYGIRdRU3armJ3P3zv8KXrhitiv1HS08K4pMzgv9+uVwTdxgC0np5tVWQDvV2MSd424ykZrvR07tm2JWxIybU="
matrix:
- CUSTOM_JDK="default"
- CUSTOM_JDK="oraclejdk8"
- CUSTOM_JDK="oraclejdk7"
- CUSTOM_JDK="openjdk7"
matrix:
exclude:
# On OSX, run with default JDK only.
- os: osx
env: CUSTOM_JDK="oraclejdk8"
- os: osx
env: CUSTOM_JDK="oraclejdk7"
- os: osx
env: CUSTOM_JDK="openjdk7"
# On Linux, run with specific JDKs only.
- os: linux
env: CUSTOM_JDK="default"
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install build-essential automake1.10 libtool; fi
script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then mvn install -P osx64; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then mvn install -P linux64; fi
after_success:
- mvn -P linux64 jacoco:report coveralls:report
after_failure:
- cat lmdbjni-linux64/target/surefire-reports/*.txt