forked from kevinstrax/nem2-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 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
43
44
dist: trusty
language: java
jdk:
- oraclejdk8
- oraclejdk9
- openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- gradle/wrapper/
install:
- true #If install is not set, travis will run gradle assemble
script: /bin/sh travis/build.sh
deploy:
- provider: script
skip_cleanup: true
script: /bin/sh travis/uploadArchives.sh
on:
branch: master
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: /bin/sh travis/release.sh
on:
branch: $RELEASE_BRANCH
jdk: oraclejdk8
- provider: script
skip_cleanup: true
script: /bin/sh travis/sonarqube.sh
on:
branch: master
jdk: oraclejdk9
before_install:
- |
if [ -z "${signingKeyId}" ]; then
echo "No signing the artifacts"
else
echo "Signing artifacts"
openssl aes-256-cbc -K $encrypted_98cf1ffdea51_key -iv $encrypted_98cf1ffdea51_iv -in travis/nem2-sdk-java.gpg.enc -out nem2-sdk-java.gpg -d
fi