forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (58 loc) · 2.02 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
65
66
67
68
69
70
71
72
73
74
75
language: java
dist: bionic
# NOTE: To speed up multiple builds - Docker container is only built on JDK8, dependency checks also only happen on JDK8
matrix:
include:
- jdk: openjdk8
env:
- BUILD_DOCKER=true
- MAVEN_OPTS="-Ddependency-check.skip=false"
services:
- docker
- jdk: openjdk11
env:
- BUILD_DOCKER=false
- MAVEN_OPTS="-Ddependency-check.skip=true"
- jdk: openjdk14
env:
- BUILD_DOCKER=false
- MAVEN_OPTS="-Ddependency-check.skip=true"
- os: osx
osx_image: xcode9.3
env:
- JAVA_HOME=$(/usr/libexec/java_home)
- BUILD_DOCKER=false
- MAVEN_OPTS="-Ddependency-check.skip=true"
cache:
directories:
- $HOME/.m2
install: travis_wait mvn -T 2C --strict-checksums -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
deploy:
# Build and publish Docker Image for Docker tag `release` from updates to Git `master` branch with JDK8
# This step is skipped on develop branch
- provider: script
skip_cleanup: true
on:
jdk: openjdk8
branch: master
script: >-
cd exist-docker &&
mvn -DskipTests -Ddocker.tag=release -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push &&
cd ..
# Build and publish Docker Image for Docker tag `latest` from updates to Git `develop` branch with JDK8
# This step is skipped on master branch
- provider: script
skip_cleanup: true
on:
jdk: openjdk8
branch: develop
script: >-
cd exist-docker &&
mvn -DskipTests -Ddocker.tag=latest -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push &&
cd ..
notifications:
slack: exist-db:$SLACK_TOKEN