-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
56 lines (47 loc) · 1.28 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
# See https://www.scala-sbt.org/1.0/docs/Travis-CI-with-sbt.html
sudo: false
language: scala
jdk:
- openjdk8
- openjdk11
scala:
- 2.12.11
- 2.13.3
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present) AND NOT fork
jobs:
include:
- env: TEST="scalafmt --check - Using fmtcheck"
name: "Formatting checks"
script: sbt fmtcheck
- env: TEST="scalastyle - Using stylecheck"
name: "Style Checks"
script: sbt stylecheck
- env: TEST="scalafix --check - Using fixcheck"
name: "Extended style checks"
script: sbt fixcheck
- env: TEST="compile"
name: "Compile"
script: sbt ++$TRAVIS_SCALA_VERSION compile
- env: TEST="test"
name: "Unit tests"
script: bash scripts/run-ci-tests.sh
- stage: release
script: sbt ++$TRAVIS_SCALA_VERSION ci-release
cache:
directories:
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- rm -rf $HOME/.ivy2/local
before_install:
- git fetch --tags