forked from typelevel/cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
121 lines (101 loc) · 3.99 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
118
119
120
language: scala
sudo: required
group: edge
git:
depth: 9999
jdk:
- openjdk8
scala_version_212: &scala_version_212 2.12.10
scala_version_213: &scala_version_213 2.13.1
before_install:
- export PATH=${PATH}:./vendor/bundle
- if [[ ! -z "$HydraLicense" ]]; then
mkdir -p /home/travis/.triplequote/metrics/config && echo "$HydraLicense" > "/home/travis/.triplequote/hydra.license" && cp hydra-metrics-service.conf /home/travis/.triplequote/metrics/config/metrics-service.conf;
fi
stages:
- name: styling
- name: test
- name: publish snapshot
if: (branch = master AND type = push)
jobs:
include:
# it can speed up the overall build to have the longer-running jobs at the top of this list.
- &js_tests
stage: test
name: Js tests 2.12
env: TEST="JS tests"
# http://austinpray.com/ops/2015/09/20/change-travis-node-version.html
install: rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
script: sbt ++$TRAVIS_SCALA_VERSION! validateJS && sbt ++$TRAVIS_SCALA_VERSION! validateKernelJS && sbt ++$TRAVIS_SCALA_VERSION! validateFreeJS
scala: *scala_version_212
- <<: *js_tests
name: Js tests 2.13
scala: *scala_version_213
- &jvm_tests
stage: test
name: Jvm tests 2.12
env: TEST="JVM tests"
install: pip install --user codecov
script: sbt ++$TRAVIS_SCALA_VERSION! coverage buildJVM bench/test coverageReport
scala: *scala_version_212
after_success: codecov -F scala_version_212
- <<: *jvm_tests
name: Jvm tests 2.13
scala: *scala_version_213
after_success: codecov -F scala_version_213
- stage: test
name: Make Microsite
env: TEST="docs"
install: gem install jekyll -v 4.0.0
script: sbt docs/makeMicrosite
- stage: test
name: Scalafix tests
env: TEST="scalafix"
script: cd scalafix && sbt tests/test
- &bincompat
stage: test
name: Binary compatibility 2.12
env: TEST="binary compatibility"
script: sbt ++$TRAVIS_SCALA_VERSION! validateBC
scala: *scala_version_212
- <<: *bincompat
name: Binary compatibility 2.13
scala: *scala_version_213
- stage: styling
name: Linting
env: TEST="linting"
script: sbt +fmtCheck
- stage: publish snapshot
script: |
if [[ $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
sbt +publish gitSnapshots +publish
else
echo Not publishing a snapshot because the version does not end with -SNAPSHOT for version $TRAVIS_SCALA_VERSION
fi
notifications:
webhooks:
urls:
- ${GITTER_WEBHOOK_URL}
on_success: change
on_failure: always
on_start: false
env:
global:
# Sonatype Credential
- secure: Kf44XQFpq2QGe3rn98Dsf5Uz3WXzPDralS54co7sqT5oQGs1mYLYZRYz+I75ZSo5ffZ86H7M+AI9YFofqGwAjBixBbqf1tGkUh3oZp2fN3QfqzazGV3HzC+o41zALG5FL+UBaURev9ChQ5fYeTtFB7YAzejHz4y5E97awk934Rg=
- secure: QbNAu0jCaKrwjJi7KZtYEBA/pYbTJ91Y1x/eLAJpsamswVOvwnThA/TLYuux+oiZQCiDUpBzP3oxksIrEEUAhl0lMtqRFY3MrcUr+si9NIjX8hmoFwkvZ5o1b7pmLF6Vz3rQeP/EWMLcljLzEwsrRXeK0Ei2E4vFpsg8yz1YXJg=
- TRAVIS_NODE_VERSION="4"
# Hydra License
- secure: "Nwd0ySmT7BQJcQb/Dyrkv/B1uYLrE5u+Ppz3Q3d6FvEB5z3XzzDai03hjMwwFwMgXGtZ2Aio0KqF2qf3oINPkmSVx1ntvL0JqwRZqxF5YPLp/vb8b4LbvHrzsf5Jh/EFK5JOdN6ApPlhw8u1X1ifvJbG6yVt9qRxCejHOI0ZT4k="
# Hydra Metrics Credential
- secure: "Xbc3y1rTRDj2ThfsT3Pj98T3OgC90aZlVrgAFtOrSTknZAK0jArlvsKg456PvTPcR2uY6c7wvyebSaq+RYReFX2XpCfRjc4ywGCUtnbfcvzO4IA/MIUkFtFQJJqBXHlN5IFqjOZyaX6svD9fNscYg0NP1pqJ6vW54ArvKTALtHM="
- secure: "hbKDZntISUgbYAXK8Q6M8XwhjB7l5yHyWIs9RjnEdV0YRfcTZIba8WEaE2JFe3MdyPUhGYAWf1AVFXLdfRSmvNHMEeVPitw5cAVxPMxhfgJnPRBVhgBsr9oMl/QQbLu7/w013m6ChYmZspApzyAfmZM2ZNKsYiX/AvoBVYeGdPQ="
cache:
directories:
- .hydra
- $HOME/.m2
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.coursier
# Pants cache
- $HOME/.cache