forked from nats-io/stan.java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.1 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
40
41
42
dist: trusty
sudo: required
language: java
jdk:
- oraclejdk8
- openjdk8
before_install:
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/target
- echo "MAVEN_OPTS='-Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom'" > ~/.mavenrc
install:
- sudo apt-get install -y gnupg2
script:
- mvn --settings .travis/settings.xml clean verify -U
after_success:
- mvn --settings .travis/settings.xml coveralls:report
before_deploy:
- echo "decrypting keyrings"
- openssl aes-256-cbc -K $encrypted_ddc2c9dfa8f8_key -iv $encrypted_ddc2c9dfa8f8_iv
-in .travis/keyrings/secrets.tar.enc -out .travis/keyrings/secrets.tar -d
- cd .travis/keyrings && tar xvf secrets.tar
- cd ${TRAVIS_BUILD_DIR}
deploy:
- provider: script
skip_cleanup: true
script: ".travis/deploy.sh"
on:
repo: nats-io/java-nats-streaming
branch: master
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: ".travis/deploy.sh"
on:
repo: nats-io/java-nats-streaming
tags: true
jdk: oraclejdk8
cache:
directories:
- "$HOME/.m2"
env:
global:
- GPG_DIR=${TRAVIS_BUILD_DIR}/.travis/keyrings