This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
forked from Jasig/sass-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
122 lines (112 loc) · 4.34 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
language: java
sudo: false
env:
global:
- BASEURL=https://archive.apache.org/dist/maven/maven-3/VERSION/binaries/apache-maven-VERSION-bin.zip
- FILE=apache-maven-VERSION-bin.zip
- DIR=apache-maven-VERSION
- VERSION=3.6.0
- secure: "NJ1w0QJMpWHDz37+f6V1vZ2on7dDVxIup7jtjlvxI192l/ETjEHop2DHJp7HEjZ6ZcC9ZJAClSW0ew7az4GaaHxvFMb2xkxH7weOPE+REZM7xHGjkYI1ElKj87d68idUT6N0kzYmN5k1wOhCvMiIUPSUMia83TfTl4USAGOVKPs="
- secure: "kwD93y0KiVmGHvefffVn7Hd7T1ZeZh+4E41LqXBAYxYGFCSYXrPlNygO6dxjKgfSSSPXqXu9SgNXdEwZez/qoIA+TAm3VOsKVcKaIJ/0En2hmUp/yLmQa3Rc9rkDdCodDkYumD6650I0l2s17w5YATVTeoUfgyAbGZLRLlmKrmY="
- secure: "hNjTA8dataGmylZo0QY4uhx8BNKQfJzfwdMMO7EdbfpEyqj9K7lIDIpcU/vCDgzUF+nISY0iaxr0ErguFYIat5VWM/4tKwQjfK+2MFNjzLlBsAVWirIsLoASzSIUroWKVUwSg61qTmuEf5A+aKhxNrvWALXaHgCoPU8DOpE2P6s="
os:
- linux
#- osx
jdk:
- openjdk11
- openjdk8
- oraclejdk11
- oraclejdk8
matrix:
fast_finish: true
include:
# additional builds
- os: linux
jdk: openjdk8
env: VERSION=3.3.9
- os: linux
jdk: openjdk8
env: VERSION=3.5.0
- os: linux
jdk: openjdk8
env: VERSION=3.5.2
- os: linux
jdk: openjdk8
env: VERSION=3.5.3
- os: linux
jdk: openjdk8
env: VERSION=3.5.4
- os: osx
osx_image: xcode10.1
#env: JVM=latest
- os: osx
osx_image: xcode10
#env: JVM=latest
- os: osx
osx_image: xcode9.4
- os: osx
osx_image: xcode9.3
allow_failures:
#- jdk: oraclejdk11
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget --no-check-certificate $(echo -n $BASEURL | sed -e 's#VERSION#'$VERSION'#g') -P $HOME/downloads/;
unzip -qq $(echo -n $HOME/downloads/$FILE | sed -e 's#VERSION#'$VERSION'#');
export M2_HOME=$PWD/$(echo -n $DIR | sed -e 's#VERSION#'$VERSION'#');
export PATH=$M2_HOME/bin:$PATH;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update --quiet;
fi
#- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$JVM" == "latest" ]; then
# brew tap caskroom/cask;
# brew install Caskroom/cask/java;
# fi
- echo $TRAVIS_OS_NAME
- echo $JAVA_HOME
- echo $TRAVIS_JDK_VERSION
- echo $VERSION
- echo $M2_HOME
- java -XshowSettings:vm -version
- unset _JAVA_OPTIONS
install:
# install without any testing to get dependencies in place
- mvn install -Dmaven.test.skip=true -B -V -fae -Dmaven.javadoc.skip=true
script:
- unset GEM_PATH
# execute unit and integration tests
- mvn -e -fae -B -DWatchMojoTestSleeptime=90000 -Dfailsafe.useFile=false clean test verify -Dtest="*,!WatchMojoTest" -Dorg.slf4j.simpleLogger.showDateTime=true -Dmaven.javadoc.skip=true
- if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] && [ "$VERSION" == "3.6.0" ]; then
mvn javadoc:javadoc;
fi
- if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] && [ "$VERSION" == "3.6.0" ]; then
mvn javadoc:test-javadoc;
fi
after_success:
- echo Conditions: TRAVIS_OS_NAME=$TRAVIS_OS_NAME VERSION=$VERSION TRAVIS_JDK_VERSION=$TRAVIS_JDK_VERSION TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
# generate code coverage report, just for openjdk8 and latest maven
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$VERSION" == "3.6.0" ] &&
[ "$TRAVIS_JDK_VERSION" == "openjdk8" ]; then
mvn -B -DWatchMojoTestSleeptime=90000 -Dtest="*,!WatchMojoTest" -e -fae -Ptravis-ci verify jacoco:report jacoco:report-integration coveralls:report;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$VERSION" == "3.6.0" ] &&
[ "$TRAVIS_JDK_VERSION" == "openjdk8" ] &&
[ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo "Attempt to deploy snapshot artifact";
travis_wait 10 mvn deploy --settings .travis/settings.xml -DskipTests=true -B -Dmaven.test.skip=true;
else
echo -n "Not deploying snapshot artifact. ";
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$VERSION" == "3.6.0" ] &&
[ "$TRAVIS_JDK_VERSION" == "openjdk8" ] &&
[ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Attempt to deploy maven site";
travis_wait 30 mvn -e -fae -B site-deploy --settings .travis/settings.xml;
else
echo -n "Not deploying maven site. ";
fi
cache:
brew: true
directories:
- $HOME/.m2
#- /Library/Caches/Homebrew