Another build speed-up attempt
* Don't do the pre-build * Apply --fast to dependencies on OS X
This commit is contained in:
parent
b55b919800
commit
58119d90cc
26
.travis.yml
26
.travis.yml
@ -152,23 +152,6 @@ before_install:
|
|||||||
install:
|
install:
|
||||||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
||||||
- if [ -f configure.ac ]; then autoreconf -i; fi
|
- if [ -f configure.ac ]; then autoreconf -i; fi
|
||||||
- |
|
|
||||||
set -ex
|
|
||||||
case "$BUILD" in
|
|
||||||
stack)
|
|
||||||
stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
|
|
||||||
;;
|
|
||||||
cabal)
|
|
||||||
cabal --version
|
|
||||||
travis_retry cabal update
|
|
||||||
|
|
||||||
# Get the list of packages from the stack.yaml file
|
|
||||||
PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@')
|
|
||||||
|
|
||||||
cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
set +ex
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
@ -177,6 +160,9 @@ script:
|
|||||||
stack)
|
stack)
|
||||||
if [ `uname` = "Darwin" ]
|
if [ `uname` = "Darwin" ]
|
||||||
then
|
then
|
||||||
|
# Build dependencies with -O0 as well
|
||||||
|
echo "apply-ghc-options: everything" >> stack.yaml
|
||||||
|
|
||||||
# Use slightly less intensive options on OS X due to Travis timeouts
|
# Use slightly less intensive options on OS X due to Travis timeouts
|
||||||
stack --no-terminal $ARGS test --fast --pedantic
|
stack --no-terminal $ARGS test --fast --pedantic
|
||||||
else
|
else
|
||||||
@ -184,6 +170,12 @@ script:
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
cabal)
|
cabal)
|
||||||
|
cabal --version
|
||||||
|
travis_retry cabal update
|
||||||
|
|
||||||
|
# Get the list of packages from the stack.yaml file
|
||||||
|
PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@')
|
||||||
|
|
||||||
cabal install --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
|
cabal install --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES
|
||||||
|
|
||||||
ORIGDIR=$(pwd)
|
ORIGDIR=$(pwd)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user