-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from B3Partners/travis-ci
[travis-ci] openjdk 11 ook testen met nieuwe Maven versie
- Loading branch information
Showing
3 changed files
with
69 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,46 @@ | ||
dist: trusty | ||
language: java | ||
|
||
env: | ||
global: | ||
- MVN_VERSION="3.6.2" | ||
|
||
jdk: | ||
- oraclejdk8 | ||
- openjdk8 | ||
- openjdk11 | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- jdk: openjdk11 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
- $HOME/downloads | ||
|
||
before_install: | ||
# installeer een up-2-date Maven versie | ||
- wget https://www.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.zip | ||
- unzip -qq apache-maven-3.6.0-bin.zip | ||
- export M2_HOME=$PWD/apache-maven-3.6.0 | ||
- wget --directory-prefix=$HOME/downloads/ --no-clobber https://www-eu.apache.org/dist/maven/maven-3/$MVN_VERSION/binaries/apache-maven-$MVN_VERSION-bin.zip | ||
- unzip -qq $HOME/downloads/apache-maven-$MVN_VERSION-bin.zip | ||
- export M2_HOME=$PWD/apache-maven-$MVN_VERSION | ||
- export PATH=$M2_HOME/bin:$PATH | ||
- mvn -v | ||
- mvn -v --global-toolchains .travis/toolchains.xml | ||
|
||
install: | ||
- mvn -e compile | ||
- mvn -e compile --global-toolchains .travis/toolchains.xml -fae | ||
|
||
script: | ||
- mvn -e verify | ||
- mvn -e verify -B --global-toolchains .travis/toolchains.xml | ||
|
||
after_success: | ||
# test of de javadoc compliant is met java-8 strict checks | ||
- if [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then | ||
- if [ "$TRAVIS_JDK_VERSION" == openjdk8 ]; then | ||
travis_wait 30 mvn javadoc:javadoc; | ||
travis_wait 30 mvn javadoc:test-javadoc; | ||
fi | ||
|
||
after_script: | ||
# deploy maven site van master branch als test succes | ||
- if [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_TEST_RESULT" == 0 ]; then | ||
- if [ "$TRAVIS_JDK_VERSION" == openjdk8 ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_TEST_RESULT" == 0 ]; then | ||
travis_wait 50 mvn -B -e -T1 site site:stage | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF8"?> | ||
<toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 http://maven.apache.org/xsd/toolchains-1.1.0.xsd"> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>11</version> | ||
</provides> | ||
<configuration> | ||
<jdkHome>/usr/local/lib/jvm/openjdk11</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>1.8</version> | ||
</provides> | ||
<configuration> | ||
<jdkHome>/usr/lib/jvm/java-8-openjdk-amd64</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
</toolchains> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters