forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (51 loc) · 1.59 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
57
58
59
60
61
62
63
64
language: java
dist: xenial
services:
- docker
env:
- BUILD_DOCKER=true
matrix:
include:
- jdk: openjdk8
- jdk: openjdk9
- jdk: openjdk10
- jdk: openjdk11
- os: osx
osx_image: xcode9.3
env:
- JAVA_HOME=$(/usr/libexec/java_home)
- BUILD_DOCKER=false
- MAVEN_OPTS="-Ddependency-check.skip=true"
deploy:
- provider: script
skip_cleanup: true
on:
jdk: openjdk8
branch: master
condition: $BUILD_DOCKER = true
# before_script: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# see https://github.com/travis-ci/dpl/issues/673
script: >-
cd exist-docker &&
mvn -DskipTests -Ddocker.tag=release -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push &&
cd ..
- provider: script
skip_cleanup: true
on:
jdk: openjdk8
branch: develop
condition: $BUILD_DOCKER = true
script: >-
cd exist-docker &&
mvn -DskipTests -Ddocker.tag=latest -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push &&
cd ..
cache:
directories:
- $HOME/.m2
install: travis_wait mvn -T 2C -DskipTests=true -Dmaven.javadoc.skip=true -Ddocker=$BUILD_DOCKER install -B -V -q
script: mvn -T 2C -Ddocker=$BUILD_DOCKER test -B
after_failure:
- tar -cjf surefire-reports.tar.bz2 exist-core/target/surefire-reports exist-core/target/test-logs-*
- curl -v -u $CHUNK_USER:$CHUNK_PW -sT surefire-reports.tar.bz2 chunk.io
notifications:
slack: exist-db:IXzUdqA0n11cnxaDz43ZQgdX