aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index dd99ef4..8b9190b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,3 +2,18 @@ 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