forked from davenverse/cats-scalacheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (53 loc) · 1.52 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
59
60
61
62
63
64
sudo: false
language: scala
jdk:
- openjdk8
os: linux
dist: xenial
scala_212: &scala_212 2.12.11
scala_213: &scala_213 2.13.2
before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.coursier/cache
- $HOME/.sbt
before_install:
- export PATH=${PATH}:./vendor/bundle
install:
- rvm use 2.6.0 --install --fuzzy
- gem update --system
- gem install sass
- gem install jekyll -v 3.2.1
stages:
- name: test
- name: doc-deploy
if: "((branch = master AND type = push) OR (tag IS present)) AND (NOT fork OR env(DEPLOY) = true)"
- name: release
if: "((branch = master AND type = push) OR (tag IS present)) AND (NOT fork OR env(DEPLOY) = true)"
jobs:
include:
- &all_tests
stage: test
script: sbt ++$TRAVIS_SCALA_VERSION test
env: TEST="all_tests"
scala: *scala_212
- <<: *all_tests
env: TEST="all_tests"
scala: *scala_213
- env: TEST="docs"
script: sbt ++$TRAVIS_SCALA_VERSION docs/mdoc && sbt ++$TRAVIS_SCALA_VERSION docs/makeMicrosite
scala: *scala_212
deploy:
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: ./cats-scalacheck-docs/target/site
provider: pages
skip_cleanup: true
target-branch: gh-pages
on:
branch: master
- stage: release
script: sbt "set organization in ThisBuild := \"${DEPLOY_ORG:-io.chrisdavenport}\"; ci-release"