forked from playframework/play-ws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (71 loc) · 3.52 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
version: ~> 1.0
language: scala
git:
depth: false # Avoid sbt-dynver not seeing the tag
env:
jobs:
- TRAVIS_JDK=11
global:
# encrypt with: travis encrypt --pro BINTRAY_USER=...
- secure: "RZUI6IHOV95LVej30BSsU5Oi8pEoFJDEwaitRj6AxK11YEvheUbcXhudw7BLQjubVwOzsMcJvuo7WINigshYmZiBSbsinuFJMdhq6vJkmoKnrA6RvY3/jkPddSKBHpaaCAYW7hVX4SmvZZucM6NHtYY5R8BA3lVUZepG/402HANvx1hZEQ12mYSJxCUk4UBUWaXLb7sl21CcuIsaEMR9wY6qzirGsyQSXGALCi9y7txfzJvVrsmomIeDx3xdITP4GQ6UW9QhPdpqoNr9TaZG0mtCfzMEPqdBJ+eR/e7R6IxvDQQ+kb0wbviDaSvTPUgzDWApBmJhWiu1hzx+dxsVCbayon5nEAWMMqUaBHQvYuujn0YV0aE8Wca4yo0HT9lWwnW3EId5+f4Na99e2YwVp7OwPtBL1ISzojFTh3CzBqkzhiZRfuYVAHCIJgxOUwXvvSWYh4oc5JZDUef47RNkIGH/iBpJ6nBsTiR/S1ZaGVoqf6XZiRu8xVGpZTCAyMwofX6JJcaWJgX2mxz9kx5PadXb7eJPwOO9CsdhiNBEtDBZdKQbIMVCtFw/kjgujCtJsl7y5PcW0SOJeUG6M9V79hwDkni8PdV0xxlyR0GzI7fULDht+qE8xwUDuIh4J4EUp1RC+oqNAXVPlrNvSTCRsyYdPs9WhyPxmpR7eFiEFoo="
# encrypt with: travis encrypt --pro BINTRAY_PASS=...
- secure: "MFp03KTS8Xaigf5geg3cVRTN+yxUuON9T3bEAtCXIAdsIj0tPDTJJ8ilZ2qxSfrUdNXmXwcBhjcT8iAIpth1q5JUu2gUXWP/hTGktqrvMWEHbAxYC0FNZea53a6aow1EqbHZEL2t+Bi7SAUxbNtVFNPICfLxL0Y4wLpoCT0HBjfM+vnQ04L49YyGM1xECmkR3VD6d6qra71rmIwIr8yHU7NOd4dVXxSmTfAJU3NiKDYbJX2yOofW+Fo70HTghmCryjcK47DPmrHzeVGwhVlqPvcSY/Bf4Ib82mMR7g3+plVb48etJRfE/Bm+UzadcSzxx+PRfsu0qSwptwCmeDHB+wwfqu6NX5AZhuOjzXuctSqje5TDBjhmS9hIxOM8Abl3w4QVFLdk8bNc6sWJ7VyRxXt2VgIHEoN+cQwKbxAyrxokwp43O/tVB5+fho04vjwiX61pH4GKXzGTVaEZVCaEBmXqThVoeb9T+PxG/ofMGEqFT3NZVEhAZRx2AbqE7ALuDykKc5aIs4fFUZwnNYYoTWsnBHBaZZqVqeexVCt3cFAArNg6xhYujswOMWv9kkp2CgDY3jbqFisH9yanOuCoh2lKIgLzldv5q2kYoS4tUIKqqTnjMaB0/GyU5UT61IBxo5NMjDVb7YvhqgBXBzdoFQh1ODyKeNoKc/IWGbfXfYw="
scala:
- 2.13.6
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
script:
- sbt ++$TRAVIS_SCALA_VERSION 'testOnly -- xonly timefactor 5'
# Check that we can actually build and package the library
- sbt ++$TRAVIS_SCALA_VERSION publishLocal
jobs:
include:
- stage: test
name: "Validations"
script: sbt mimaReportBinaryIssues validateCode doc
env:
- TRAVIS_SCALA_VERSION=2.13.6
- TRAVIS_JDK=11
- name: "Run tests with Scala 2.12 and AdoptOpenJDK 11"
env:
- TRAVIS_SCALA_VERSION=2.12.14
- TRAVIS_JDK=11
- name: "Run tests with Scala 2.13 and AdoptOpenJDK 11"
env:
- TRAVIS_SCALA_VERSION=2.13.6
- TRAVIS_JDK=11
- name: "Run tests with Scala 2.12 and AdoptOpenJDK 8"
env:
- TRAVIS_SCALA_VERSION=2.12.14
- TRAVIS_JDK=8
- name: "Run tests with Scala 2.13 and AdoptOpenJDK 8"
env:
- TRAVIS_SCALA_VERSION=2.13.6
- TRAVIS_JDK=8
- stage: publish
name: "Publish artifacts to Bintray"
script: sbt +publish
stages:
- name: test
- name: publish
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
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
branches:
only:
- master
- /^\d+\.\d+(\.\d+)?(-\S*)?$/