-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve travis-ci test and deploy phases (#1)
- Add OpenJDK 8 and 11 runtimes - Make sure checkstyle runs during test phase - Move deploy into a stage so it only runs once after tests pass - Reduce log noise from maven downloads - Cache maven repo - Add badges to readme - Add a release maven profile
- Loading branch information
1 parent
b2899c3
commit d89a28a
Showing
5 changed files
with
109 additions
and
77 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
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,25 +1,38 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
install: | ||
- mvn --settings .travis/settings.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V | ||
- openjdk8 | ||
- openjdk11 | ||
matrix: | ||
allow_failures: | ||
- jdk: openjdk11 | ||
install: true | ||
before_install: | ||
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi | ||
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi | ||
deploy: | ||
- | ||
provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: rapid7/docker-image-analyzer | ||
branch: master | ||
jdk: oraclejdk8 | ||
- | ||
provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: rapid7/docker-image-analyzer | ||
tags: true | ||
script: | ||
- mvn test -Dgpg.skip -Dmaven.javadoc.skip=true -B -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | ||
jobs: | ||
include: | ||
- stage: deploy | ||
if: branch =~ /^(?:master|\d+\.\d+(\.\d+)?(-\S*)?)$/ AND type != pull_request AND fork = false | ||
script: skip | ||
jdk: oraclejdk8 | ||
deploy: | ||
- | ||
provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: rapid7/docker-image-analyzer | ||
branch: master | ||
- | ||
provider: script | ||
script: .travis/deploy.sh | ||
skip_cleanup: true | ||
on: | ||
repo: rapid7/docker-image-analyzer | ||
tags: true | ||
cache: | ||
directories: | ||
- $HOME/.m2 |
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
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
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