-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 1.72 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
language: java
dist: bionic
addons:
apt:
packages:
- python3-pip
- python3-setuptools
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
jdk:
- openjdk8
before_install:
- docker pull vimc/montagu-db:master
- docker pull vimc/montagu-migrate:master
install:
- npm install codecov -g
- travis_retry sudo ./libsodium/install-libsodium.sh
- ./src/gradlew -p src
before_script:
- sudo mkdir -p /etc/montagu/api/ && sudo touch /etc/montagu/api/go_signal
- ./src/gradlew -p src :startDatabase :startOrderlyWeb :startTaskQueue :startTestAPI
script:
- ./src/gradlew -p src :testLibrary :stopTestAPI
# need to stop and re-start orderly-web on host network for blackbox tests against app running on metal
- ./scripts/stop-orderly-web.sh host
- ./scripts/start-orderly-web.sh host
- nohup ./src/gradlew -p src :run > /dev/null 2>&1 &
- ./src/gradlew -p src :blackboxTests:test
after_success:
- ./src/gradlew -p src :app:jacocoTestReport
- ./src/gradlew -p src :blackboxTests:jacocoTestReport
- ./src/gradlew -p src :databaseTests:jacocoTestReport
- ./src/gradlew -p src :security:jacocoTestReport
- ./src/gradlew -p src :serialization:jacocoTestReport
- ./src/gradlew -p src :userCLI:jacocoTestReport
- codecov -f src/app/coverage/test/*.xml
- codecov -f src/blackboxTests/coverage/test/*.xml
- codecov -f src/databaseTests/coverage/test/*.xml
- codecov -f src/emails/coverage/test/*.xml
- codecov -f src/security/coverage/test/*.xml
- codecov -f src/serialization/coverage/test/*.xml
- codecov -f src/userCLI/coverage/test/*.xml
services:
- docker