-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
35 lines (35 loc) · 922 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
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt
deploy:
api_key:
secure: Xt/GrRLR+fQPEapfpzSRyCyoY2q1mtKGUWIhRN+m0WQm840TCt46uI37xRvJ+w4KKUNxRhaOUKhlVsePsEghokFU4aDODcs+8twDT2HnseOa8xKvBzoSV3lhNcMEeSfSObfUeJTBYQkhqB0FNOqusO76BdwsVV/RWg25mZ+Qv8I=
file: '*/target/**/*.jar'
file_glob: true
on:
repo: lucidsoftware/relate
tags: true
provider: releases
skip_cleanup: true
env:
global:
- MYSQL_USER=root
- MYSQL_PASSWORD=
git:
depth: 1
jdk:
- openjdk8
language: scala
script:
- '[ "$TRAVIS_PULL_REQUEST" != false ] || export SBT_OPTS=-Dbuild.version=${TRAVIS_TAG:-$TRAVIS_BRANCH-SNAPSHOT}'
- sbt 'all doc:compile test'
- |
if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then
echo "$PGP_SECRET" | base64 --decode | gpg --import
if [ -z "$TRAVIS_TAG" ]; then
sbt publishSigned
else
sbt "; publishSigned; sonatypeBundleRelease"
fi
fi