forked from ome/bio-formats-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (41 loc) · 1 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
language: java
# This (sudo: false) is needed to "run on container-based infrastructure" on
# which cache: is available
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
# http://docs.travis-ci.com/user/caching/#Arbitrary-directories
cache:
directories:
- $HOME/.m2
addons:
apt_packages:
- git
jdk:
- oraclejdk11
- oraclejdk8
- openjdk7
env:
- BUILD="mvn install"
- BUILD="gradle publishToMavenLocal exec"
matrix:
fast_finish: true
# To avoid "gradle assemble"; gradle version provided doesn't
# work with Java 10. Remove when gradle gets updated.
install:
- true
script:
- $BUILD
# Exclude gradle/java 10 combination until gradle is updated.
matrix:
fast_finish: true
exclude:
- jdk: oraclejdk11
env: BUILD="gradle publishToMavenLocal exec"
deploy:
provider: script
script: "cp .travis.settings.xml $HOME/.m2/settings.xml && mvn deploy"
skip_cleanup: true
on:
tags: true
jdk: oraclejdk8
condition: $BUILD = "mvn install"