forked from typelevel/cats-tagless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (61 loc) · 3.05 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
language: scala
sudo: required
dist: trusty
group: edge
git:
depth: 9999
jdk:
- oraclejdk8
scala_version_211: &scala_version_211 2.11.12
scala_version_212: &scala_version_212 2.12.8
scala_version_213: &scala_version_213 2.13.0
before_install:
- export PATH=${PATH}:./vendor/bundle
stages:
- 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.
- env: TEST="coverage"
install: pip install --user codecov
script: sbt coverage rootJVM/test coverageReport && codecov
- &js_tests
env: TEST="JS tests"
script: sbt ";project rootJS;++$TRAVIS_SCALA_VERSION test"
scala: *scala_version_211
- <<: *js_tests
scala: *scala_version_212
- <<: *js_tests
scala: *scala_version_213
- &jvm_tests
env: TEST="JVM tests"
script: sbt ";project rootJVM; ++$TRAVIS_SCALA_VERSION test"
scala: *scala_version_211
- <<: *jvm_tests
scala: *scala_version_212
- <<: *jvm_tests
scala: *scala_version_213
- env: TEST="docs"
install: gem install jekyll -v 2.5
script: sbt docs/makeMicrosite
- stage: publish snapshot
env:
- PUBLISH="SNAPSHOT"
- secure: "nRC57+imJFUwlRIx3OVcKvojMQkStCBtc3Cdjh3A2NkJ8RtRBOzoCHdjb12ohNochKtK2D6Rqu5aFYTY4JlFRXClZD+HkPAwKInKKBoKi9KCNm9Ip3Qra7sO+suo6DZbOh5neu9t5p0R+Sbomhi5gD47LnS4k98GnVZ9PX3obiC3T9FWLSlhVkEG9wxV164kggoXQUo7xaJkfLgmh7gTOG8OsPBEQiBM4VEQjhVE7F/iWuAHvMbPtvdD6V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TWPkgZ0QfYZyF9Y43OT7lzA9NXiuEQGxfKoycI="
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
cache:
directories:
- $HOME/.m2
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.coursier
# Pants cache
- $HOME/.cache