-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (33 loc) · 847 Bytes
/
.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
# https://www.scala-sbt.org/1.x/docs/Travis-CI-with-sbt.html
sudo: false
language: scala
jdk: oraclejdk8
install:
- npm install jsdom
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
script:
- sbt ++$TRAVIS_SCALA_VERSION test
- sbt ++$TRAVIS_SCALA_VERSION fullOptJS
after_success:
- mkdir deploy
- cp ./ui/index.html deploy
- cp ./ui/target/scala-2.12/ui-opt.js deploy
- cp ./ui/target/scala-2.12/ui-jsdeps.js deploy
before_deploy:
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
target-branch: gh-pages
local-dir: deploy
on:
branch: poc-cappio
after_deploy:
- rm -rf deploy