Skip to content

Commit

Permalink
Merge pull request #3849 from lehins/better-travis
Browse files Browse the repository at this point in the history
Improved default .travis.yml
  • Loading branch information
snoyberg authored Feb 6, 2018
2 parents 07bdb09 + 64009ef commit b48f18f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ cache:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work

matrix:
fast_finish: true
Expand Down
11 changes: 6 additions & 5 deletions doc/travis-complex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cache:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work

# The different configurations we want to test. We have BUILD=cabal which uses
# cabal-install, and BUILD=stack which uses Stack. More documentation on each
Expand Down Expand Up @@ -163,10 +164,6 @@ before_install:
echo 'remote-repo: hackage.haskell.org:http://hackage.fpcomplete.com/' > $HOME/.cabal/config
echo 'remote-repo-cache: $HOME/.cabal/packages' >> $HOME/.cabal/config
if [ "$CABALVER" != "1.16" ]
then
echo 'jobs: $ncpus' >> $HOME/.cabal/config
fi
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
Expand Down Expand Up @@ -220,7 +217,11 @@ script:
cd "$PKGVER"
cabal configure --enable-tests --ghc-options -O0
cabal build
cabal test
if [ "$CABALVER" = "1.16" ] || [ "$CABALVER" = "1.18" ]; then
cabal test
else
cabal test --show-details=streaming --log=/dev/stdout
fi
cd $ORIGDIR
done
;;
Expand Down

0 comments on commit b48f18f

Please sign in to comment.