[Travis] Fail early on stack solver fails
This commit is contained in:
parent
5e83a8b2fc
commit
bb754b896f
@ -30,7 +30,7 @@ install:
|
||||
resf="ghc-$GHCVER.yaml"
|
||||
echo "resolver: ghc-$GHCVER" > "$resf"
|
||||
echo "packages: ['.']" >> "$resf"
|
||||
stack --no-terminal solver --update-config --stack-yaml="$resf"
|
||||
stack --no-terminal solver --update-config --stack-yaml="$resf" || exit 101
|
||||
sed -i 's/^resolver:/compiler:/;s/^extra-deps:/packages:/' "$resf"
|
||||
echo "resolver: { name: 'ghc-$GHCVER', location: './$resf' }" > stack.yaml
|
||||
echo "packages: ['.']" >> stack.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user