Add --no-terminal to stack invocations

This commit is contained in:
Nikolay Yakimov 2016-08-03 16:43:48 +03:00
parent d4283e78ec
commit 93d23762b3
1 changed files with 6 additions and 6 deletions

View File

@ -22,16 +22,16 @@ before_install:
install:
# - git clone --depth=1 https://github.com/DanielG/cabal-helper.git
- stack setup --resolver=ghc-$GHCVER
- stack install cabal-install --resolver=$RES
- stack --no-terminal setup --resolver=ghc-$GHCVER
- stack --no-terminal install cabal-install --resolver=$RES
- cabal update
- stack install happy --resolver=$RES
- stack --no-terminal install happy --resolver=$RES
# - stack init --ignore-subdirs --resolver=ghc-$GHCVER ./ cabal-helper/
# - stack init --ignore-subdirs --resolver=ghc-$GHCVER ./
- |
resf="ghc-$GHCVER.yaml"
echo "resolver: ghc-$GHCVER" > "$resf"
stack solver --update-config --stack-yaml="$resf"
stack --no-terminal solver --update-config --stack-yaml="$resf"
sed -i 's/^resolver:/compiler:/;s/^extra-deps:/packages:/' "$resf"
echo "resolver: { name: 'ghc-$GHCVER', location: './$resf' }" > stack.yaml
ir=$( stack path --snapshot-install-root )
@ -42,8 +42,8 @@ install:
script:
- cabal check
- stack build
- stack test ghc-mod:spec
- stack --no-terminal build --test --no-run-tests
- stack --no-terminal test ghc-mod:spec
matrix:
matrix: