-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
32 lines (28 loc) · 955 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
language: java
jdk: openjdk8
cache:
directories:
- '$HOME/.m2'
install: ./mvnw install -DskipTests -Dgpg.skip
jobs:
include:
- stage: install # The stage is triggered on every commit
script: echo 'Install on ' $TRAVIS_BRANCH
- stage: deploy # The stage is triggered when new release tag is created on master brunch
sudo: false
services: []
install: skip
script: skip
before_deploy:
- openssl aes-256-cbc -in release/codesigning.asc.enc -out release/codesigning.asc -d -k $CODESIGNING
- gpg --fast-import release/codesigning.asc
- rm release/codesigning.asc
- ./mvnw versions:set -DnewVersion=$TRAVIS_TAG
deploy:
- provider: script
skip_cleanup: true
script: bash ./mvnw deploy --settings release/settings.xml
on:
tags: true
branch: master
after_deploy: echo 'Deployed finished successfully'