git.iko.soy/typeable/stackage2nix
on master help sign in
Fix Nix build timeout
commit6215e8ed05fba4e33ec90fbce15ed868f518516a authorDmitry Bushev <bushevdv@gmail.com> dateTue 20 Jun 2017, 20:32 (9 years ago) parent90ac1ac
1 file changed+1−18
.travis.yml+1−18
.travis.yml+1−18
@@ -1,7 +1,5 @@
11sudo: false
22
3−language: nix
4−
53addons:
64 apt:
75 packages:
@@ -12,26 +10,11 @@ cache:
1210 directories:
1311 - $HOME/.stack
1412
15−matrix:
16− include:
17− - env: BUILD=stack
18− - env: BUILD=nix
19− allow_failures:
20− - env: BUILD=nix
21−
2213before_install:
2314# Download and unpack the stack executable
2415- mkdir -p ~/.local/bin
2516- export PATH=$HOME/.local/bin:$PATH
2617- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
2718
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−
3419script:
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
20+- stack -j2 --no-terminal --install-ghc test