forked from akka/alpakka-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (20 loc) · 986 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: scala
sudo: false
scala:
- "2.11.11"
jdk:
- oraclejdk8
script:
# make 'git branch' work again
- git branch -f "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH"
- sbt -jvm-opts .travis-jvmopts +test
# check policies, if on master also upload
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" ]]; then sbt 'set credentials += Credentials("whitesource", "whitesourcesoftware.com", "", System.getenv("WHITESOURCE_KEY"))' whitesourceCheckPolicies whitesourceUpdate; else sbt 'set credentials += Credentials("whitesource", "whitesourcesoftware.com", "", System.getenv("WHITESOURCE_KEY"))' whitesourceCheckPolicies; fi
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
env:
global:
# encrypt with: travis encrypt WHITESOURCE_KEY=...
- secure: "WrsJARX85hk+6YojUDLZpQEdHn9PkqIJuxSr5KIbDVUHUQo6H+P4QA5jNPTJjmEh3T+smvkP0doV+ouyZtEkPU0Yzc0f63/5COgROS2mSjDVVAUJlRDgcGfYTAzC5nB7UQEqoQmG2Z7MhkLt3fNSgOxQ3csHLFtkQEVGO+/EQHk="