-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (48 loc) · 1.28 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
48
49
50
51
52
53
54
55
language: scala
jdk:
- openjdk8
matrix:
include:
- scala: 2.12.8
env:
- SBT_VERSION=1.2.8
- scala: 2.10.7
env:
- SBT_VERSION=0.13.18
before_cache:
- du -h -d 1 $HOME/.ivy2/
- du -h -d 2 $HOME/.sbt/
- du -h -d 4 $HOME/.coursier/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
cache:
directories:
- $HOME/.sbt/cache
- $HOME/.sbt/1.0
- $HOME/.sbt/boot/
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.ivy2
before_install:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
openssl aes-256-cbc -K $encrypted_6e108da8c84d_key -iv $encrypted_6e108da8c84d_iv -in secring.gpg.enc -out secring.gpg -d;
fi
- export PATH=${PATH}:./vendor/bundle
script:
- sbt ^^$SBT_VERSION orgScriptCI
after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
if grep -q "SNAPSHOT" version.sbt; then
sbt ^^$SBT_VERSION publish;
else
if [ "$SBT_VERSION" = "1.2.8" ]; then
sbt ^^$SBT_VERSION orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt ^^$SBT_VERSION release;
fi
fi
fi