@@ -1,5 +1,7 @@
@@ -10,11 +12,26 @@ cache:
10 directories:
12 directories:
11 - $HOME/.stack
13 - $HOME/.stack
13before_install:
22before_install:
14# Download and unpack the stack executable
23# Download and unpack the stack executable
15- mkdir -p ~/.local/bin
24- mkdir -p ~/.local/bin
16- export PATH=$HOME/.local/bin:$PATH
25- export PATH=$HOME/.local/bin:$PATH
17- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
26- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
29+# cabal2nix dependencies
30+- nix-env -i nix-prefetch-git
31+- stack -j2 --no-terminal --install-ghc install cabal-install
32+- stack -j2 exec -- cabal update
20−- stack --no-terminal --install-ghc test
35+- stack -j2 --no-terminal --install-ghc build --fast
36+- if [ $BUILD = stack ]; then stack -j2 --no-terminal test; fi
37+- if [ $BUILD = nix ]; then GHCRTS='-N2' ./nix-test -j2 --dry-run; fi