forked from fthomas/refined
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (49 loc) · 1.22 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
language: scala
jdk:
- openjdk8
sudo: false
addons:
apt:
packages:
- graphviz
before_install:
- git fetch --tags
cache:
directories:
- "$HOME/.cache/coursier"
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/"
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- language: shell
script:
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
- scala: 2.12.11 # Remember to update this in build.sbt, too.
install:
- pip install --user codecov
script:
- sbt ++$TRAVIS_SCALA_VERSION validateJVM &&
sbt ++$TRAVIS_SCALA_VERSION validateJS
- SCALAJS_VERSION=0.6.32 sbt ++$TRAVIS_SCALA_VERSION clean validateJS
after_success:
- codecov
- scala: 2.13.1 # Remember to update this in build.sbt, too.
script:
- sbt ++$TRAVIS_SCALA_VERSION testJVM213 &&
sbt ++$TRAVIS_SCALA_VERSION testJS213
- SCALAJS_VERSION=0.6.32 sbt ++$TRAVIS_SCALA_VERSION clean validateJS
- stage: release
script:
- sbt ci-release
- SCALAJS_VERSION=0.6.32 sbt ci-release
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a22ea519223977cc7fc9
on_success: change
on_failure: always
on_start: never