forked from jenkinsci/gitlab-branch-source-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (29 loc) · 827 Bytes
/
.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
language: java
dist: xenial
if: |
repo != jenkinsci/gitlab-branch-source-plugin OR \
type = pull_request OR \
branch = master
before_cache:
- rm -rf $HOME/.m2/repository/io/jenkins/plugins/gitlab-branch-source*
cache:
directories:
- $HOME/.m2
env:
global:
- JAVA_LEVEL=8
matrix:
include:
- jdk: openjdk11
env:
- MVN_FLAG='-Daccess-modifier-checker.failOnError=true'
- jdk: openjdk8
install:
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V $MVN_FLAG -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
script:
- |
mvn clean install -B \
-Djava.level=$JAVA_LEVEL \
$MVN_FLAG -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
notifications:
email: false