forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (79 loc) · 3.21 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
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 (main, 2.8.x, 2.7.x, 2.6.x)
git:
depth: false # Avoid sbt-dynver not seeing the tag
env:
global:
- secure: "NS2hMbBcmi6EF4QxtcNs4A2ZuNmIdLYQRJUWWejgnD4YtcsmoVjxrHRedqrnDdui4DyvaxWhg/3Uds23jEKTSbbh3ZphLO77BVgM2nUGUvVoa4i6qGF2eZFlIhq2G1gM700GPV7X4KmyjYi2HtH8CWBTkqP3g0An63mCZw/Gnlk="
# These are the versions used for (scripted) tests. The versions Play is build with however are defined in interplay.
- SCRIPTED_SBT_1_6: "1.6.2"
- TEST_SCALA_2_13: "2.13.8"
jobs:
- TRAVIS_JDK=11
before_install:
- |
curl -Ls https://git.io/sbt -o sbt || travis_terminate 1
chmod 0755 sbt || travis_terminate 1
sudo mv sbt /usr/local/bin/sbt || travis_terminate 1
- curl --version # for debug purpose
- if [ ! -f ~/.jabba/jabba.sh ]; then curl -L -v --retry 5 -o jabba-install.sh https://git.io/jabba && bash jabba-install.sh; fi
- . ~/.jabba/jabba.sh
install: jabba install $(jabba ls-remote "adopt@~1.$TRAVIS_JDK.0-0" --latest=patch) && jabba use "$_" && java -Xmx32m -version
stages:
- validations
- test
- test-sbt-1.6.x
- java8
jobs:
include:
- stage: validations
name: "Run publishLocal"
script: scripts/publish-local
workspaces:
create:
name: published-local
paths: "$HOME/.ivy2/local/com.typesafe.play"
- name: "Run publishLocal on Java 8"
script: scripts/publish-local
env: TRAVIS_JDK=8
workspaces:
create:
name: published-local-jdk8
paths: "$HOME/.ivy2/local/com.typesafe.play"
- script: scripts/validate-code
name: "Code validations (format, binary compatibilty, 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/it-test $TEST_SCALA_2_13
name: "Run it tests for Scala 2.13"
- script: scripts/test $TEST_SCALA_2_13
name: "Run tests for Scala 2.13"
- script: scripts/test-docs $TEST_SCALA_2_13
name: "Run documentation tests 2.13"
- stage: test-sbt-1.6.x
name: "Run scripted tests (a) for sbt 1.6.x and Scala 2.13.x"
script: scripts/test-scripted $SCRIPTED_SBT_1_6 $TEST_SCALA_2_13 'play-sbt-plugin/*1of3'
workspaces:
use: published-local
- name: "Run scripted tests (b) for sbt 1.6.x and Scala 2.13.x"
script: scripts/test-scripted $SCRIPTED_SBT_1_6 $TEST_SCALA_2_13 'play-sbt-plugin/*2of3'
workspaces:
use: published-local
- name: "Run scripted tests (c) for sbt 1.6.x and Scala 2.13.x"
script: scripts/test-scripted $SCRIPTED_SBT_1_6 $TEST_SCALA_2_13 'play-sbt-plugin/*3of3'
workspaces:
use: published-local
cache:
directories:
- "$HOME/.cache/coursier"
- "$HOME/.ivy2/cache"
- "$HOME/.jabba"
- "$HOME/.sbt"
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete