/
.travis.yml
111 lines (99 loc) · 4.13 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
notifications:
slack:
on_success: never
on_failure: always
rooms:
- oicr:S9k4EowgQv9AnbCfEZHSzCsg
sudo: required
services:
- docker
- elasticsearch
addons:
postgresql: "9.6"
cache:
directories:
- $HOME/.m2
- /tmp/localstack_install_dir
- $HOME/.cache/pip
language: java
jdk:
- oraclejdk8
env:
- TESTING_PROFILE=integration-tests
jobs:
include:
- stage: unit-tests
env:
- TESTING_PROFILE=unit-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE
# no point in running integration tests if we don't pass unit tests
- stage: integration-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE -DskipITs=true
- stage: integration-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE -DskipClientITs=true
env:
- TESTING_PROFILE=tool-integration-tests
- stage: integration-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE -DskipClientITs=true
env:
- TESTING_PROFILE=workflow-integration-tests
- stage: integration-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE -DskipClientITs=true
env:
- TESTING_PROFILE=other-integration-tests
- stage: integration-tests
env:
- TESTING_PROFILE=toil-integration-tests
script: mvn --batch-mode clean install -P$TESTING_PROFILE -DskipClientITs=true
# no point in running coverage if we don't pass integration tests
- stage: coverage
if: branch IN (master, develop)
env:
- TESTING_PROFILE=unit-tests
script: mvn --batch-mode clean install jacoco:report jacoco:report-aggregate coveralls:report -P$TESTING_PROFILE,coverage
- stage: coverage
if: branch IN (master, develop)
script: mvn --batch-mode clean install jacoco:report-integration jacoco:report-aggregate coveralls:report -P$TESTING_PROFILE,coverage -DskipITs=true
- stage: coverage
if: branch IN (master, develop)
script: mvn --batch-mode clean install jacoco:report-integration jacoco:report-aggregate coveralls:report -P$TESTING_PROFILE,coverage -DskipClientITs=true
env:
- TESTING_PROFILE=tool-integration-tests
- stage: coverage
if: branch IN (master, develop)
script: mvn --batch-mode clean install jacoco:report-integration jacoco:report-aggregate coveralls:report -P$TESTING_PROFILE,coverage -DskipClientITs=true
env:
- TESTING_PROFILE=workflow-integration-tests
- stage: coverage
if: branch IN (master, develop)
script: mvn --batch-mode clean install jacoco:report-integration jacoco:report-aggregate coveralls:report -P$TESTING_PROFILE,coverage -DskipClientITs=true
env:
- TESTING_PROFILE=other-integration-tests
# build lifecycle is before_install, install, before_script, script, after_script
before_install:
# need to clear out old version of the plugin till everything is merged due to https://github.com/maven-download-plugin/maven-download-plugin/issues/80
- rm -Rf $HOME/.m2/repository/.cache/download-maven-plugin/
# turn this back on when npm settles down/we find a swagger2openapi replacement
#- npm install -g swagger2openapi@2.11.16
# decrypt migration before initial build
- scripts/decrypt.sh
# turn this back on with updates to swagger (particularly swagger-maven-plugin), current implementation is too non-deterministic
#- scripts/check-swagger.sh
install:
- docker version
- scripts/install-tests.sh
before_script:
- psql -c "create user dockstore with password 'dockstore' createdb;" -U postgres
- psql -c "ALTER USER dockstore WITH superuser;" -U postgres
- psql -c 'create database webservice_test with owner = dockstore;' -U postgres
- export PATH=$PATH:$PWD/dockstore-client/target
before_cache:
- rm -rf /home/travis/.m2/repository/io/dockstore
- rm -rf $HOME/.m2/repository/.cache/download-maven-plugin directory
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/7f1c48703628e3514bb6
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always