forked from 47degrees/sbt-microsites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.2 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
language: scala
jdk:
- oraclejdk8
matrix:
include:
- scala: 2.12.6
env:
- SBT_VERSION=1.1.6
- scala: 2.10.6
env:
- SBT_VERSION=0.13.16
before_install:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
openssl aes-256-cbc -K $encrypted_cf02a587d2be_key -iv $encrypted_cf02a587d2be_iv -in secring.gpg.enc -out secring.gpg -d;
fi
- export PATH=${PATH}:./vendor/bundle
install:
- rvm use 2.2.8 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
script:
- sbt ++$TRAVIS_SCALA_VERSION ^^$SBT_VERSION clean compile test
- sbt ++$TRAVIS_SCALA_VERSION ^^$SBT_VERSION scripted;
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.1.6" ]; then
sbt ^^$SBT_VERSION orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt ^^$SBT_VERSION release;
sbt ^^$SBT_VERSION docs/publishMicrosite;
fi
fi
fi