-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
99 lines (87 loc) · 2.47 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: scala
scala:
- 2.11.12
- 2.12.6
env:
- SCALAENV=jvm
- SCALAENV=js
- SCALAENV=all
- FREESBUILD=docs
matrix:
exclude:
- scala: 2.11.12
env: FREESBUILD=docs
- env: SCALAENV=all
jdk:
- openjdk8
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
- find $HOME/.coursier/cache -name "*.lock" -type f -delete
cache:
directories:
- $HOME/.sbt/1.0
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/cache
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier
before_install:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
openssl aes-256-cbc -K $encrypted_86276aecec54_key -iv $encrypted_86276aecec54_iv -in secring.gpg.enc -out secring.gpg -d;
fi
- export PATH=${PATH}:./vendor/bundle
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
script:
- if [ "$SCALAENV" = "jvm" ]; then
sbt ++$TRAVIS_SCALA_VERSION validateJVM;
elif [ "$SCALAENV" = "js" ]; then
sbt ++$TRAVIS_SCALA_VERSION validateJS;
elif [ "$FREESBUILD" = "docs" ]; then
sbt ++$TRAVIS_SCALA_VERSION docs/tut;
else
echo "You might not be invited to the party";
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
webhooks:
urls:
- 'https://webhook.atomist.com/atomist/travis/teams/T024G6JTP'
on_cancel: always
on_error: always
on_start: always
on_failure: always
on_success: always
jobs:
include:
- stage: deploy
script:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
if grep -q "SNAPSHOT" version.sbt; then
sbt +publish;
else
if [ "$SCALAENV" = "all" ]; then
sbt orgUpdateDocFiles;
git reset --hard HEAD;
git clean -f;
git checkout master;
git pull origin master;
sbt release;
git clone https://github.com/frees-io/freestyle-rpc.git;
cd freestyle-rpc && sbt docs/tut && cd ..;
git clone https://github.com/frees-io/freestyle-cassandra.git;
cd freestyle-cassandra && sbt docs/tut && cd ..;
sbt docs/publishMicrosite;
fi
fi
fi
scala: 2.12.4
env: SCALAENV=all