forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
97 lines (88 loc) · 3.14 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
language: scala
addons:
apt:
packages:
# Install xmllint used to get Akka HTTP version
- libxml2-utils
before_install:
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
install:
- $JABBA_HOME/bin/jabba install $TRAVIS_JDK
- unset _JAVA_OPTIONS
- export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version
env:
global:
- JABBA_HOME=$HOME/.jabba
- secure: "NS2hMbBcmi6EF4QxtcNs4A2ZuNmIdLYQRJUWWejgnD4YtcsmoVjxrHRedqrnDdui4DyvaxWhg/3Uds23jEKTSbbh3ZphLO77BVgM2nUGUvVoa4i6qGF2eZFlIhq2G1gM700GPV7X4KmyjYi2HtH8CWBTkqP3g0An63mCZw/Gnlk="
matrix:
stages:
- validations
- test
- test-sbt
- java11
jobs:
include:
# Validations stage
- 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"
- script: scripts/publish-local
name: "Run a publishLocal for the default scala version"
# Test stage
- stage: test
script: scripts/test-scala-212
name: "Run tests for Scala 2.12"
- script: scripts/test-scala-213
name: "Run tests for Scala 2.13"
- script: scripts/test-docs
name: "Run documentation tests"
- script: scripts/it-test-scala-212
name: "Run it tests for Scala 2.12"
- script: scripts/it-test-scala-213
name: "Run it tests for Scala 2.13"
# Test-sbt stage
- stage: test-sbt
script: scripts/test-sbt-plugins-0_13
name: "Scripted tests for sbt 0.13"
- script: scripts/test-sbt-plugins-1_0
name: "Scripted tests for sbt 1"
# Java 11 stage
# Test against Open JDK 11, but only for Scala 2.12
- stage: java11
script: scripts/test-scala-212
env: [email protected]
name: "Run tests for Scala 2.12 and Java 11"
- script: scripts/it-test-scala-212
env: [email protected]
name: "Run it tests for Scala 2.12 and Java 11"
matrix:
fast_finish: true
allow_failures:
# We are not fully validating for Java 11 yet, so we allow this to
# failure until we tackle all the problems. Anyway, having it at the
# build helps us to track the progress and discover problems sooner.
- env: [email protected]
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
- "$HOME/.jabba/jdk"
before_cache:
- rm -rf $HOME/.ivy2/local
- rm -rf $HOME/.ivy2/cache/com.typesafe.play/*
- rm -rf $HOME/.ivy2/cache/scala_*/sbt_*/com.typesafe.play/*
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d2c8a242a2615f659595
on_success: always
on_failure: always
slack:
secure: LIYWP1YF6DEXh4gBQ0DlaQP+kenerp7Q1AC3y/+egJYUu1g2TWmBlkcpXOcdHzrgTIUX/LYnSlhowIpsW7/YwcyLn3rOJI6SJM00DrDPRm6X1586P9DcR4XiX7MChewzbnmebx6KISt6bFtfvcd67J2cinmShwXQh2AmwvuT3Tc=