git.iko.soy/typeable/stackage2nix
on master help sign in
Fix Nix build timeout
6215e8eDmitry Bushev
.travis.yml+1−18
@@ -1,7 +1,5 @@
1sudo: false
1sudo: false
2
2
3−language: nix
4−
5addons:
3addons:
6 apt:
4 apt:
7 packages:
5 packages:
@@ -12,26 +10,11 @@ cache:
12 directories:
10 directories:
13 - $HOME/.stack
11 - $HOME/.stack
14
12
15−matrix:
16− include:
17− - env: BUILD=stack
18− - env: BUILD=nix
19− allow_failures:
20− - env: BUILD=nix
21−
22before_install:
13before_install:
23# Download and unpack the stack executable
14# Download and unpack the stack executable
24- mkdir -p ~/.local/bin
15- mkdir -p ~/.local/bin
25- export PATH=$HOME/.local/bin:$PATH
16- export PATH=$HOME/.local/bin:$PATH
26- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
17- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
27
18
28−install:
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
33−
34script:
19script:
35−- stack -j2 --no-terminal --install-ghc build --fast
20+- stack -j2 --no-terminal --install-ghc test
36−- if [ $BUILD = stack ]; then stack -j2 --no-terminal test; fi
37−- if [ $BUILD = nix ]; then GHCRTS='-N2' ./nix-test -j2 --dry-run; fi