-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
55 lines (38 loc) · 1.05 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
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
- ARQUILLIAN_DOCKER_EXTENSION_ENABLED=true
jdk: oraclejdk8
language: java
services:
- docker
sudo: required
before_install:
- 'if [ "$TRAVIS_EVENT_TYPE" = "push" ] && [ "$TRAVIS_BRANCH" != "master" ]; then
echo "Terminating build since there is also a pull request build running.";
travis_terminate 0;
fi'
# Install Catch Reports
- curl -O https://liferay-labs.github.io/reports-catcher/catch-reports.sh
- chmod +x catch-reports.sh
# Build Docker Image and Run
- ./gradlew buildAppDocker runDocker
install: true
script:
- ./gradlew testIntegration
# Get test coverage results
- ./gradlew dumpJacoco
- ./gradlew coveralls
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
after_script:
- ./catch-reports.sh