forked from checkstyle/eclipse-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.2 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
language: java
sudo: false
cache:
apt: true
directories:
- ~/.m2
branches:
only:
- master
addons:
apt:
packages:
- xmlstarlet
install:
- ""
# JDKs used in builds must be supported by Tycho.
# Check https://wiki.eclipse.org/Tycho/Release_Notes to find supported versions.
matrix:
fast_finish: true
include:
# JDK 8 (minimal supported Java version of eclipse-cs)
- jdk: openjdk8
env:
- DESC="install (openjdk8)"
- CMD="mvn install && git diff"
# JDK 11 (Long Term Support version)
- jdk: openjdk11
env:
- DESC="install (openjdk11)"
- CMD="mvn install && git diff"
# JDK 13 (most recent Java version)
- jdk: openjdk13
env:
- DESC="install (openjdk13)"
- CMD="mvn install && git diff"
script:
- |
set -e
MVN_SETTINGS=${TRAVIS_HOME}/.m2/settings.xml
if [[ -f ${MVN_SETTINGS} ]]; then
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
sed -i'' -e "/<mirrors>/,/<\/mirrors>/ d" $MVN_SETTINGS
else
xmlstarlet ed --inplace -d "//mirrors" $MVN_SETTINGS
fi
fi
echo "eval of CMD is starting";
echo "CMD=$CMD";
eval $CMD;
echo "eval of CMD is completed";