-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
52 lines (52 loc) · 1.71 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
matrix:
include:
- language: node_js
node_js:
- 10
cache: npm
install:
- npm install codecov -g
- npm install --prefix=src/app/static
- npm run build --prefix=src/app/static
script: npm test --prefix=src/app/static
after_success:
- codecov -f src/app/static/coverage/*.json
- language: java
addons:
chrome: stable
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/
- $HOME/src/app/static/node_modules
jdk:
- openjdk8
before_install:
- docker pull vimc/orderly.server:master
- docker pull vimc/montagu-reverse-proxy-minimal:master
- docker pull vimc/orderlyweb-migrate:master
- docker pull vimc/montagu-api:master
- docker pull vimc/montagu-db:master
- docker pull vimc/montagu-migrate:master
- docker pull vimc/montagu-cli:master
install:
- npm install --prefix ./src/app/static
- npm install codecov -g
- sudo ./scripts/install-chromedriver.sh
- ./src/gradlew -p src
before_script:
- sudo mkdir -p /etc/orderly/web/ && sudo touch /etc/orderly/web/go_signal
- ./scripts/migrate-build.sh
- ./travis/run-dependencies.sh
- ./src/gradlew -p src :customConfigTests:copyDemo
script:
- ./src/gradlew -p src :app:test
- ./src/gradlew -p src :customConfigTests:test --stacktrace
after_success:
- ./src/gradlew -p src :app:jacocoTestReport
- codecov -f src/app/coverage/test/*.xml
services:
- docker