-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
37 lines (32 loc) · 990 Bytes
/
.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
language: java
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
jobs:
include:
- stage: "test"
name: "Unit Tests"
script: ./mvnw clean test
- script: ./mvnw dependency:analyze
name: "Dependency Analyze"
- stage: "install"
name: "Build"
script: ./mvnw clean install -Pstaging
after_success: ./mvnw jacoco:report coveralls:report
- stage: "deploy"
name: "Deploy"
before_install:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrus
script: ./mvnw clean deploy --settings .maven.settings.xml -DskipTests=true -B -U -Prelease
allow_failures:
- script: ./mvnw dependency:analyze
name: "Dependency Analyze"
stages:
- test
- name: install
if: ((branch =~ /(master|release-\d+\.\d+\.x+)/) OR (type = pull_request))
- name: deploy
if: ((branch =~ /(master|release-\d+\.\d+\.x+)/))