From fcaef360cbf970a6a609d5d2328b968096c3d2bd Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sun, 22 Oct 2017 13:09:07 +0300 Subject: [PATCH] Don't build --dep for all As tutorial depends on servant-js, which isn't in this repository cabal fails fatally to `new-build --dep all`. Instead we are building deps for servant-server and servant-client only, which already includes e.g. http-client and warp, i.e. pretty much everything we need. It's not bad that some dependencies might be build during `script` phase --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c1e3a823..03f09fe7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,8 +77,8 @@ install: (cd "doc/tutorial"; autoreconf -i); fi - rm -f cabal.project.freeze - - cabal new-build -w ${HC} ${TEST} ${BENCH} --project-file="cabal.project" --dep -j2 all - - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --project-file="cabal.project" --dep -j2 all + - cabal new-build -w ${HC} ${TEST} ${BENCH} --project-file="cabal.project" --dep -j2 servant-server servant-client + - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --project-file="cabal.project" --dep -j2 servant-server servant-client - rm -rf "servant"/.ghc.environment.* "servant-client"/.ghc.environment.* "servant-client-core"/.ghc.environment.* "servant-docs"/.ghc.environment.* "servant-foreign"/.ghc.environment.* "servant-server"/.ghc.environment.* "doc/tutorial"/.ghc.environment.* "servant"/dist "servant-client"/dist "servant-client-core"/dist "servant-docs"/dist "servant-foreign"/dist "servant-server"/dist "doc/tutorial"/dist - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)