-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (54 loc) · 1.58 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
language: scala
jobs:
include:
- stage: test
name: "Test"
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.cache/pip
- $HOME/.cache/pyenv
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
install:
- pyenv install -s 3.7.1
- pyenv global 3.7.1
- pip install --upgrade pip
- pip install -r requirements.txt
- export LD_LIBRARY_PATH=$(python3-config --prefix)/lib
script:
- sbt test scalafmtCheckAll scalafmtSbtCheck
- stage: deploy
name: "Build and deploy website"
install:
- cd website
- npm install
script:
- npm run build
- touch build/.nojekyll
deploy:
provider: pages
skip_cleanup: true
local_dir: website/build/tf-dotty
github_token: $GITHUB_TOKEN
on:
branch: master
- stage: deploy
name: "Release library"
if: branch = master
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
before_install:
- git fetch --tags
script: sbt ci-release