forked from kiegroup/optaweb-employee-rostering
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
23 lines (23 loc) · 1.03 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
git:
depth: false
language: java
jdk: openjdk8
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.m2/wrapper"
- "$HOME/.npm"
- "$HOME/.sonar/cache"
- "$HOME/.sonar/native-sonar-scanner"
# Change Travis install phase to only resolve dependencies needed to run the build.
# Otherwise it would run `mvn install`, which results in doing some Maven phases twice (validate, compile, jar, ...).
# https://docs.travis-ci.com/user/languages/java/#projects-using-maven
#
# We also want to avoid Maven's install phase to prevent from writing to ~/.m2/repository, which is cached.
install: mvn de.qaware.maven:go-offline-maven-plugin:1.2.1:resolve-dependencies -Pjacoco,sonar --quiet --show-version
# do not install to avoid dirtying the cache
script:
- mvn verify -Pjacoco,sonar -Dintegration-tests=true --show-version
# check that git working tree is clean after running npm install via a frontend-maven-plugin
# the git command returns 1 and fails the build if there are any uncommitted changes
- git diff HEAD --exit-code