Skip to content

Commit ffe4091

Browse files
committed
Add separated test for invoker in jdk<11 and jdk>10
1 parent dfaaedd commit ffe4091

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ addons:
2323
sonarcloud:
2424
organization: "powerunit"
2525
before_install:
26+
- git config --local user.name "powerunitci"
27+
- git config --local user.email "powerunitci@powerunit.ch"
2628
- cp .travis.settings.xml $HOME/.m2/settings.xml
2729
- if [[ "$TRAVIS_OS_NAME" = linux ]]; then sudo apt-get install jshon ; fi
28-
- if [[ "$TRAVIS_TAG" =~ powerunit-extensions-exceptions-[0-9].[0-9].[0-9] ]]; then echo $GPG_SECRET_KEYS | base64 --decode | gpg --import ; fi
29-
- if [[ "$TRAVIS_TAG" =~ powerunit-extensions-exceptions-[0-9].[0-9].[0-9] ]]; then echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust ; fi
30+
- if [[ "$TRAVIS_TAG" =~ powerunit-extensions-exceptions-[0-9].[0-9].[0-9] ]]; then echo $GPG_SECRET_KEYS | base64 --decode | gpg --import ; echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust ; fi
3031
install:
3132
- "mvn dependency:resolve dependency:resolve-plugins dependency:go-offline"
3233
script:
@@ -43,17 +44,17 @@ after_success:
4344
- "curl -s https://report.ci/annotate.py | python - --name annotate$TRAVIS_OS_NAME$TRAVIS_JDK_VERSION --tool java --input maven.log"
4445
- "curl -s https://report.ci/upload.py | python - --name upload$TRAVIS_OS_NAME$TRAVIS_JDK_VERSION --include='*.xml' --framework=junit"
4546
- "(cd target/dependency && java -jar codacy-coverage-reporter-6.0.0-assembly.jar report -l Java -r ../site/jacoco/jacoco.xml)"
46-
- if [[ "$TRAVIS_JDK_VERSION" = openjdk10 ]]; then git fetch --unshallow ; fi
47-
- if [[ "$TRAVIS_JDK_VERSION" = openjdk10 ]]; then mvn sonar:sonar -Dsonar.projectKey=powerunit_powerunit-extensions-exceptions ; fi
47+
- if [[ "$TRAVIS_JDK_VERSION" = openjdk10 ]]; then git fetch --unshallow ; mvn sonar:sonar -Dsonar.projectKey=powerunit_powerunit-extensions-exceptions ; fi
4848
- if [[ "$TRAVIS_JDK_VERSION" = openjdk10 ]]; then rm -f target/classes/module-info.class; mvn site ; fi
49-
before_deploy:
50-
- git config --local user.name "powerunitci"
51-
- git config --local user.email "powerunitci@powerunit.ch"
52-
- if [[ "$TRAVIS_TAG" =~ powerunit-extensions-exceptions-[0-9].[0-9].[0-9] ]]; then echo "No tag to be created" ; else git tag -m "Create ci tag [ci skip]" -f "ci/$TRAVIS_BRANCH/$TRAVIS_BUILD_NUMBER"; fi
53-
- mkdir -p target/announcement
54-
- "mvn org.apache.maven.plugins:maven-changes-plugin:announcement-generate || echo 'Nothing for the moment' > target/announcement/announcement.vm"
55-
- export RELEASE_NOTES=$(jshon -s "$(cat target/announcement/announcement.vm)")
49+
- mkdir -p target/announcement ; mvn org.apache.maven.plugins:maven-changes-plugin:announcement-generate || echo 'Nothing for the moment' > target/announcement/announcement.vm ; export RELEASE_NOTES=$(jshon -s "$(cat target/announcement/announcement.vm)")
5650
deploy:
51+
- provider: script
52+
script: git tag -m "Create ci tag [ci skip]" -f "ci/$TRAVIS_BRANCH/$TRAVIS_BUILD_NUMBER"
53+
skip-cleanup: true
54+
on:
55+
branch: master
56+
tags: false
57+
condition: $TRAVIS_JDK_VERSION = openjdk10
5758
- provider: pages
5859
skip-cleanup: true
5960
keep-history: false

0 commit comments

Comments
 (0)