forked from higherkindness/droste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (49 loc) · 1.11 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
language: nix
sudo: required
dist: trusty
jdk:
- oraclejdk8
stages:
- name: test
jobs:
include:
- name: "Bazel"
script:
- ./scripts/ci-jobs.sh bazel
- name: "Format"
script:
- ./scripts/ci-jobs.sh format
- name: "Test"
script:
- ./scripts/ci-jobs.sh test
- name: "Coverage"
script:
- ./scripts/ci-jobs.sh coverage
- name: "Readme / Docs"
script:
- ./scripts/ci-jobs.sh readme
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- rm -rf $HOME/.ivy2/local
- |
if [ ! "$(ls -A $HOME/nix-cache)" ]; then
cp -a /nix/* $HOME/nix-cache
fi
cache:
directories:
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.coursier
- $HOME/nix-cache
before_install:
- git fetch --tags
install: |
if [ "$(ls -A $HOME/nix-cache)" ]; then
sudo rm -rf /nix/*
cp -a $HOME/nix-cache/* /nix
fi