forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
117 lines (104 loc) · 4.3 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
language: scala
# Only build non-pushes (so PRs, API requests & cron jobs) OR tags OR forks OR main branch builds
# https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
if: type != push OR tag IS present OR repo != playframework/playframework OR branch IN (master, 2.7.x, 2.6.x)
addons:
apt:
packages:
# Install xmllint used to get Akka HTTP version
- libxml2-utils
env:
global:
- secure: "NS2hMbBcmi6EF4QxtcNs4A2ZuNmIdLYQRJUWWejgnD4YtcsmoVjxrHRedqrnDdui4DyvaxWhg/3Uds23jEKTSbbh3ZphLO77BVgM2nUGUvVoa4i6qGF2eZFlIhq2G1gM700GPV7X4KmyjYi2HtH8CWBTkqP3g0An63mCZw/Gnlk="
matrix:
- TRAVIS_JDK=8
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
stages:
- validations
- test
- publish-local
- test-sbt
- java11
jobs:
include:
- stage: validations
script: scripts/validate-code
name: "Code validations (format, binary compatibilty, whitesource, etc.)"
- script: scripts/validate-docs
name: "Validate docs (links, sample code, etc.)"
- script: scripts/validate-microbenchmarks
name: "Validate that microbenchmarks are runnable"
- stage: test
script: scripts/test-scala-212
name: "Run tests for Scala 2.12"
- script: scripts/test-docs-212
name: "Run documentation tests 2.12"
- script: scripts/it-test-scala-212
name: "Run it tests for Scala 2.12"
- script: scripts/test-scala-213
name: "Run tests for Scala 2.13"
- script: scripts/test-docs-213
name: "Run documentation tests 2.13"
- script: scripts/it-test-scala-213
name: "Run it tests for Scala 2.13"
- stage: publish-local
name: "Clean ~/.ivy2/local and cross-run publishLocal"
script: scripts/clean-and-cross-publish-local
- name: "Clean ~/.ivy2/local and cross-run publishLocal on Java 11"
script: scripts/clean-and-cross-publish-local
env: TRAVIS_JDK=11
- stage: test-sbt
name: "Run scripted tests (a) for sbt 0.13.x"
script: scripts/test-scripted 0.13.x 'play-sbt-plugin/*1of3'
- name: "Run scripted tests (b) for sbt 0.13.x"
script: scripts/test-scripted 0.13.x 'play-sbt-plugin/*2of3'
- name: "Run scripted tests (c) for sbt 0.13.x"
script: scripts/test-scripted 0.13.x 'play-sbt-plugin/*3of3'
- name: "Run scripted tests (a) for sbt 1.x"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*1of3'
- name: "Run scripted tests (b) for sbt 1.x"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*2of3'
- name: "Run scripted tests (c) for sbt 1.x"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*3of3'
# Test against Java 11, but only for Scala 2.12
- stage: java11
script: scripts/test-scala-212
env: TRAVIS_JDK=11
name: "Run tests for Scala 2.12 and Java 11"
- script: scripts/it-test-scala-212
env: TRAVIS_JDK=11
name: "Run it tests for Scala 2.12 and Java 11"
- script: scripts/test-docs-212
env: TRAVIS_JDK=11
name: "Run documentation tests for Scala 2.12 and Java 11"
- name: "Run scripted tests (a) for sbt 1.x and Java 11"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*1of3'
env: TRAVIS_JDK=11
- name: "Run scripted tests (b) for sbt 1.x and Java 11"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*2of3'
env: TRAVIS_JDK=11
- name: "Run scripted tests (c) for sbt 1.x and Java 11"
script: scripts/test-scripted 1.x 'play-sbt-plugin/*3of3'
env: TRAVIS_JDK=11
cache:
directories:
- "$HOME/.coursier/cache"
- "$HOME/.ivy2/cache"
- "$HOME/.ivy2/local"
- "$HOME/.jabba/jdk"
- "$HOME/.sbt"
before_cache: find $HOME/.sbt -name "*.lock" -delete
notifications:
email:
recipients:
secure: mpliytE8tmhTD4Dn9P5Cvkc/DzLiAoaVPKo5zvMpB19VFZsAKswNrNAhnG04osyeO/Gf5JQfScCMiVP0/VUzBeZxtQmiTUScaD6N9zKDyEN81T0r1W977fkqwP9Qx1wz4sk8w90+IJbHnjhmASCsh9xNx//MYGlAOWCSXsS5FzE=
webhooks:
urls:
- https://webhooks.gitter.im/e/d2c8a242a2615f659595
on_success: always
on_failure: always
slack:
secure: bMaBU2Az2YK0rVx95luyOikXqB/C5khfvuVI03muOGFfdiEEBEZYoqiCtB7OisveBU/orQCrjZJRL9+vCsEwVvIFF1eIa66ZE8wOTOGNMdv8hetdfR6dg2+RLrnE0zltVhlG2XMFK7X743utmE8e3koMWYH8uQSTQCXdOoUJwpQ=
on_success: never
on_failure: always