-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
59 lines (53 loc) · 1.73 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
env:
DOCKER_COMPOSE_VERSION: 1.25.4
language: java
notifications:
email: false
jdk:
- openjdk11
jobs:
include:
- stage: Build and run unit and integration tests...
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/
addons:
apt:
packages:
- docker-ce
sonarcloud:
organization: "jferrater"
token: ${SONAR_TOKEN}
services: docker
git:
depth: false
before_install:
- sudo apt-get update
- docker-compose --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker --version
- docker ps -a
script:
- cd opa-datafilter-core
- ./gradlew clean build
- ./gradlew integrationTest
- ./gradlew jacocoTestReport sonarqube -Dsonar.verbose=true
- cd ../opa-datafilter-jpa-spring-boot-starter
- ./gradlew clean build
- ./gradlew jacocoTestReport sonarqube -Dsonar.verbose=true
- cd ../opa-datafilter-mongo-spring-boot-starter
- ./gradlew clean build
- ./gradlew jacocoTestReport sonarqube -Dsonar.verbose=true
- cd ../opa-datafilter-query-service
- ./gradlew clean build
- ./gradlew jacocoTestReport sonarqube -Dsonar-verbose=true
after_script:
- docker ps -a