-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
58 lines (46 loc) · 1.17 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
sudo: false
language: scala
scala:
- 2.13.0
- 2.12.8
- 2.11.12
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
env:
- JOB=Test
script:
- sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport
before_install:
- git fetch --tags
before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
after_success:
- bash <(curl -s https://codecov.io/bash)
stages:
- name: test
- name: release
if: tag IS present AND NOT fork
jobs:
include:
- env: JOB=Documentation
scala:
- 2.12.7
before_install:
- export PATH=${PATH}:./vendor/bundle
install:
- rvm use 2.4 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
script:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then bash scripts/publishMicrosite.sh; fi
- if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then echo "Not in master branch, skipping deploy and release"; fi
after_success: ignore
- stage: release
env: JOB=Release
script: sbt ci-release