forked from typelevel/log4cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 1.3 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
sudo: false
language: scala
jdk:
- openjdk11
before_install:
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle
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
scala: 2.13.2
script: sbt ++$TRAVIS_SCALA_VERSION test
- name: test 2.12
scala: 2.12.11
script: sbt ++$TRAVIS_SCALA_VERSION test
-
name: mima
script: sbt +mimaReportBinaryIssues
- name: scalafmt
script: sbt scalafmtCheckAll
-
name: docs
scala: 2.12.11
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 4
script: sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite
# run ci-release only if previous stages passed
- stage: release
name: release
script:
- sbt ci-release
- stage: release
name: microsite
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 4
script: sbt ++2.12.9 docs/publishMicrosite
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.coursier/cache
- $HOME/.sbt