-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.14 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
45
46
47
sudo: false
language: scala
jdk: oraclejdk8
before_cache:
- find $HOME/.sbt -name "*.lock" -print -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
before_install:
# Ensure git tags are always fetched so sbt-dynver can pick up correct version
- git fetch --tags
# Extract GPG keys only when
- if [ $TRAVIS_PULL_REQUEST = "false" ]; then
openssl aes-256-cbc -K $encrypted_624c4e31574a_key -iv $encrypted_624c4e31574a_iv -in travis/secrets.tar.enc -out travis/local.secrets.tar -d;
tar xv -C travis -f travis/local.secrets.tar;
fi
stages:
- name: test
if: tag IS blank
- name: publish
if: (branch = master) AND (type = push) AND (tag IS blank)
- name: release
if: tag IS present
jobs:
include:
- stage: test
scala: 2.11.12
script: sbt ++$TRAVIS_SCALA_VERSION test
- scala: 2.12.6
script: sbt ++$TRAVIS_SCALA_VERSION test
- stage: publish
scala: 2.11.12
script: sbt ++$TRAVIS_SCALA_VERSION publishSigned
- scala: 2.12.6
script: sbt ++$TRAVIS_SCALA_VERSION publishSigned
- stage: release
script: sbt sonatypeReleaseAll