forked from akka/akka-persistence-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (87 loc) · 4.66 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
100
101
102
language: scala
sudo: true
services:
- docker
before_install:
# make comparing to origin/master work and fetch full history for correct current and previous version detection
- git remote set-branches --add origin master && git fetch --unshallow
# using jabba for custom jdk management
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash && . ~/.jabba/jabba.sh
# default script for jobs, that do not have any specified
script:
- jabba install ${JDK:=adopt@~1.8-0}
- jabba use ${JDK:=adopt@~1.8-0}
- java -version
- ${PRE_CMD:=return 0} # do nothing if not set
- sbt -jvm-opts .jvmopts-travis "$CMD"
jobs:
include:
- stage: check
env: CMD="verifyCodeStyle"
name: "Code style check. Run locally with: sbt verifyCodeStyle"
- env: CMD="+Test/compile"
name: "Compile all code with Scala 2.12 and 2.13"
- env: CMD="docs/paradox"
name: "Create site with Paradox. Run locally with: `sbt docs/previewSite`"
- env: CMD="mimaReportBinaryIssues"
name: "Check binary compatibility. Run locally with: sbt mimaReportBinaryIssues"
- stage: test
env:
- PRE_CMD="./scripts/launch-all.sh"
- CMD="++2.12.11 test"
name: "Run tests with Scala 2.12 and AdoptOpenJDK 8"
- env:
- PRE_CMD="./scripts/launch-all.sh"
- CMD="++2.13.1 test"
name: "Run tests with Scala 2.13 and AdoptOpenJDK 8"
- env:
- JDK="adopt@~1.11-0"
- _JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler"
- PRE_CMD="./scripts/launch-all.sh"
- CMD="++2.12.10 test"
name: "Run tests with Scala 2.12 and AdoptOpenJDK 11"
- env:
- JDK="adopt@~1.11-0"
- _JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler"
- PRE_CMD="./scripts/launch-all.sh"
- CMD="++2.13.1 test"
name: "Run tests with Scala 2.13 and AdoptOpenJDK 11"
- stage: whitesource
script: git branch -f "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH" && sbt whitesourceCheckPolicies whitesourceUpdate
name: "Check licenses via WhiteSource"
- stage: publish
env: CMD="+publish"
name: "Publish artifacts to Bintray"
- script: ./.travis/travis-to-gustav.sh
name: "Publish API and reference documentation"
stages:
# runs on master commits and PRs
- name: check
if: NOT tag =~ ^v
# runs on master commits and PRs
- name: test
if: NOT tag =~ ^v
# runs on main repo master commits and version-tagged commits
- name: whitesource
if: repo = akka/akka-persistence-jdbc AND ( ( branch = master AND type = push ) OR tag =~ ^v )
# runs on main repo master commits and version-tagged commits
- name: publish
if: repo = akka/akka-persistence-jdbc AND ( ( branch = master AND type = push ) OR tag =~ ^v )
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
cache:
directories:
- $HOME/.m2
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
- $HOME/.sbt/launchers
- $HOME/.cache/coursier
- $HOME/.jabba/jdk
env:
global:
# API Key from https://saas.whitesourcesoftware.com/Wss/WSS.html#!adminOrganization_integration
# encrypt with: travis encrypt --pro WHITESOURCE_PASSWORD=...
- secure: "O3pD+CI5Twbdu4qXwW0MAX9mAYTYMGmZWvUJe4yNO5n/O90SGsb8fVPWjtw6iBX3FZFyGary0VGvQFJtdYRO8xj8NqYG1teJWsMYzqobQ5CEgqKdcPoRfPTmS0m2RR5ThL8KagGMfWAuy+7+OCbbocuPxpDhGbQ53UjcmRFrQicsy/7YEM2woafh7s/uejAgEJL7v2HKeR82ZVUGcDXAmAF2Djyn9zmMddPRvkftCdcquCqbQocj162WOjKG/wDm1u+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