forked from typelevel/doobie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.05 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
language: scala
jdk:
- openjdk8
before_install:
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-9.4-postgis-2.4
install:
- rvm use 2.6 --install --fuzzy
- gem install sass
- gem install jekyll -v 3.2.1
before_script:
- project/travis-before-build.sh
stages:
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
jobs:
include:
- script:
- sbt +test
- sbt -J-XX:+UseG1GC docs/mdoc
- stage: release
script: sbt ci-release
cache:
directories:
- $HOME/.sbt/1.0
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/cache
- $HOME/.sbt/launchers
- $HOME/.ivy2
- $HOME/.cache/coursier
- $HOME/.rvm/
- vendor/bundle
before_cache:
- du -h -d 1 $HOME/.ivy2/
- du -h -d 2 $HOME/.sbt/
- du -h -d 4 $HOME/.coursier/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- find $HOME/.cache/coursier -name "*.lock" -type f -delete