-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
30 lines (30 loc) · 932 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
after_success: |
if [ "$TRAVIS_SECURE_ENV_VARS" == true ]; then
echo "$PGP_SECRET" | base64 --decode | gpg --import
if [ -z "$TRAVIS_TAG" ]; then
(cd sbt-cross && exec sbt publishSigned)
else
(cd sbt-cross && exec sbt "; publishSigned; sonatypeBundleRelease")
fi
fi
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt
deploy:
provider: releases
api_key:
secure: gtGkk0o5BwJyhdob+0PlL7zQHO1ACpO22cIYQyfoMvpcnTrrAHqa7Pxx7DUHstE0wIWCPrgKnzUbjqCvxpSZ2mrfg9K0CRLVBQv/BC45szXeKvAIwjij8kJY30QQD9G2xoom6vqi5OajS440jEmD0E4VgegQNaYY5HK0OKYizfU=
file: '*/target/**/*.jar'
file_glob: true
on:
tags: true
repo: lucidsoftware/sbt-cross
skip_cleanup: true
git:
depth: 1
jdk: openjdk8
language: scala
script:
- '[ "$TRAVIS_PULL_REQUEST" != false ] || export SBT_OPTS=-Dbuild.version=${TRAVIS_TAG:-$TRAVIS_BRANCH-SNAPSHOT}'
- (cd sbt-cross && exec sbt checkFormat package test)