forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 1 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
jdk:
- oraclejdk8
os:
- linux
language: scala
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
# default stage is test
- env: TEST="scalafmt+scalafix+docs"
script:
- ./bin/scalafmt --test
- sbt scalafixCheck docs/docusaurusCreateSite
- env: TEST="sbt slow/test"
script:
- sbt slow/test
- env: TEST="sbt +cross/test"
script:
- sbt +cross/test
- stage: release
script: sbt ci-release docs/docusaurusPublishGhpages
cache:
directories:
- $HOME/.sbt/0.13/dependency
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.cache/coursier
- $HOME/.coursier
yarn: true
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