From c3e4abd892e4105d9fe355bfe2ab9c12a349d2ee 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 c5b49419..59ae49b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -74,8 +74,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-docs"/.ghc.environment.* "servant-foreign"/.ghc.environment.* "servant-server"/.ghc.environment.* "doc/tutorial"/.ghc.environment.* "servant"/dist "servant-client"/dist "servant-docs"/dist "servant-foreign"/dist "servant-server"/dist "doc/tutorial"/dist - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)