aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 8b9190b26ae0866b1b0a2e329b4fbc013e92c450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: nix  # automatically runs nix-build

git:
  depth: 3     # not 1 to build commits in the queue

jobs:
  include:
  - name: "Cabal build"
    env: NIX=0
  - name: "Nix build"
    env: NIX=1

cache:
  directories:
  - $HOME/.cabal

before_script: if [[ $NIX -eq 0 ]]; then nix-env -i cabal-install ghc; fi

script: ./scripts/build.sh