Skip to content

Commit

Permalink
Use explicit special "all" target
Browse files Browse the repository at this point in the history
  • Loading branch information
hvr committed Mar 12, 2017
1 parent e492959 commit 0875582
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ install:
ghc-travis collection ${COLL} | grep -Fv " ${PKGNAME} ==" > cabal.project.freeze;
grep ' collection-id' cabal.project.freeze;
rm -rf dist-newstyle/;
cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2;
cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all;
done
- rm -f cabal.project.freeze
- cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2
- cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all

# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
Expand All @@ -86,10 +86,10 @@ script:
- "echo 'packages: .' > cabal.project"
# this builds all libraries and executables (without tests/benchmarks)
- rm -f cabal.project.freeze
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks
- cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
# this builds all libraries and executables (including tests/benchmarks)
# - rm -rf ./dist-newstyle
- cabal new-build -w ${HC} ${TEST} ${BENCH}
- cabal new-build -w ${HC} ${TEST} ${BENCH} all

# there's no 'cabal new-test' yet, so let's emulate for now
- TESTS=( $(awk 'tolower($0) ~ /^test-suite / { print $2 }' *.cabal) )
Expand All @@ -106,7 +106,7 @@ script:
ghc-travis collection ${COLL} | grep -Fv " ${PKGNAME} ==" > cabal.project.freeze;
grep ' collection-id' cabal.project.freeze;
rm -rf dist-newstyle/;
cabal new-build -w ${HC} ${TEST} ${BENCH} || break;
cabal new-build -w ${HC} ${TEST} ${BENCH} all || break;
done

# EOF

0 comments on commit 0875582

Please sign in to comment.