-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
39 lines (39 loc) · 1.14 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
language: java
jdk:
- openjdk8
- openjdk11
- openjdk-ea
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
script:
- mvn test -Dgpg.skip -Dmaven.javadoc.skip=true -B -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
allow_failures:
- jdk: openjdk11
- jdk: openjdk-ea
fast_finish: true
include:
- stage: deploy
if: branch =~ /^(?:master|\d+\.\d+(\.\d+)?(-\S*)?)$/ AND type != pull_request AND fork = false
script: skip
jdk: openjdk8
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