-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (50 loc) · 1.63 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
dist: bionic
matrix:
include:
- language: java
jdk:
- openjdk8
cache: npm
install:
- npm install codecov -g
- npm install --prefix=src/app/static
- npm run build --prefix=src/app/static
- npm run lint --prefix=src/app/static -- --quiet
before_script:
- ./src/app/static/scripts/run-dependencies-for-integration-tests.sh
script:
- npm test --prefix=src/app/static
- npm run integration-test --prefix=src/app/static
after_success:
- codecov -f src/app/static/coverage/*.json
- codecov -f src/app/static/coverage/integration/*.json
- language: java
before_cache:
- rm -f $HOME/src/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/src/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/src/app/.gradle/caches/
- $HOME/src/app/.gradle/wrapper/
- $HOME/src/app/static/node_modules
jdk:
- openjdk8
install:
- npm install codecov -g
- npm install --prefix=src/app/static
- ./src/gradlew -p src
before_script:
- sudo /etc/init.d/postgresql stop
- ./scripts/run-dependencies.sh
- ./src/gradlew -p src app::detektMain
script:
- ./src/gradlew -p src app::test
- ./src/gradlew -p src userCLI::test
- ./src/gradlew -p src app::jacocoTestReport
- codecov -f src/app/coverage/test/*.xml
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- ./src/userCLI/scripts/build
- ./src/userCLI/scripts/push
- ./scripts/travis.sh
services:
- docker