-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
64 lines (50 loc) · 891 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: scala
sudo: required
dist: trusty
jdk:
- openjdk8
- openjdk11
scala:
- 2.11.12
- 2.12.9
- 2.13.0
cache:
directories:
- $HOME/.m2
- $HOME/.sbt/0.13/dependency
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2
- $HOME/.cache/coursier/v1
- $HOME/.nvm
env:
global:
- TRAVIS_NODE_VERSION="5"
addons:
apt:
packages:
- graphviz
before_install:
- export PATH=${PATH}:./vendor/bundle
- git fetch --tags
install:
- scripts/travis/setup.sh
script:
- scripts/travis/build.sh
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present) AND NOT fork
- name: publish
if: tag IS present AND NOT fork
jobs:
include:
- stage: release
script: sbt ci-release
- stage: publish
script: sbt docs/docusaurusPublishGhpages
branches:
only:
- master
- /v.+/