This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
61 lines (51 loc) · 1.42 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
# See https://www.scala-sbt.org/1.0/docs/Travis-CI-with-sbt.html
sudo: false
language: scala
scala:
- 2.12.7
jdk: oraclejdk8
addons:
sonarcloud:
organization: chocpanda-github
stages:
- name: test
- name: report
- 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 && sbt scapegoat
- env: TEST="compile"
name: "Compile"
script: sbt compile
- env: TEST="test"
name: "Unit tests"
script: bash scripts/run-ci-tests.sh
- stage: report
env: SONAR_SCANNER_HOME="${TRAVIS_HOME}/.sonarscanner/sonar-scanner-3.0.3.778"
script: sbt sonarScan
- stage: release
script: sbt 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