-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
49 lines (43 loc) · 1.12 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
language: scala
jdk:
- openjdk8
before_install:
- git fetch --tags
stages:
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
jobs:
include:
# stage="test" if no stage is specified
- name: test 2.13 & jdk11
scala: [ 2.13.3 ]
jdk: openjdk11
script: sbt ++$TRAVIS_SCALA_VERSION test
- name: test 2.13 & jdk8
scala: [ 2.13.3 ]
jdk: openjdk8
script: sbt ++$TRAVIS_SCALA_VERSION test
- name: test 2.12 & jdk11
scala: [ 2.12.12 ]
jdk: openjdk11
script: sbt ++$TRAVIS_SCALA_VERSION test
- name: test 2.12 & jdk8
scala: [ 2.12.12 ]
jdk: openjdk8
script: sbt ++$TRAVIS_SCALA_VERSION test
- name: coverage
scala: [ 2.13.3 ]
jdk: openjdk11
script: sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport
# run ci-release only if previous stages passed
- stage: release
name: release
jdk: openjdk8
script: sbt ci-release
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt