-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
44 lines (44 loc) · 1.31 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
language: scala
matrix:
include:
- scala: 2.10.7
jdk: openjdk8
dist: trusty
env: PUBLISH_FROM_THIS_BUILD=true
- scala: 2.11.12
jdk: openjdk8
dist: trusty
env: PUBLISH_FROM_THIS_BUILD=true
- scala: 2.12.11
jdk: openjdk8
dist: xenial
env: PUBLISH_FROM_THIS_BUILD=true
- scala: 2.13.1
jdk: openjdk8
dist: xenial
env: PUBLISH_FROM_THIS_BUILD=true
- scala: 2.13.1
jdk: openjdk10
dist: xenial
- scala: 2.13.1
jdk: openjdk11
dist: xenial
script:
- sbt ++$TRAVIS_SCALA_VERSION clean test endToEnd:test package
sudo: false
cache:
directories:
- "$HOME/.m2"
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
git:
depth: 1
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
before_install:
- "if [[ $TRAVIS_TAG == v[0-9.]* ]]; then openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in secring.gpg.enc -out local.secring.gpg -d; fi"
- "if [[ $TRAVIS_TAG == v[0-9.]* ]]; then openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in pubring.gpg.enc -out local.pubring.gpg -d; fi"
after_success:
- "[[ $TRAVIS_TAG == v[0-9.]* ]] && [[ $PUBLISH_FROM_THIS_BUILD == true ]] && { gpg --import local.secring.gpg && sbt ++$TRAVIS_SCALA_VERSION publish sonatypeBundleRelease; };"