Dry build with stack, to test that yaml files are valid
This commit is contained in:
parent
461d43693d
commit
8e5f50154d
3 changed files with 11 additions and 4 deletions
|
@ -3,8 +3,8 @@ sudo: false
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- GHCVER=7.8.4 CABALVER=1.22
|
- GHCVER=7.8.4 CABALVER=1.22 STACK_YAML=stack-ghc-7.8.4.yaml
|
||||||
- GHCVER=7.10.3 CABALVER=1.22
|
- GHCVER=7.10.3 CABALVER=1.22 STACK_YAML=stack.yaml
|
||||||
- GHCVER=8.0.1 CABALVER=1.24
|
- GHCVER=8.0.1 CABALVER=1.24
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
@ -20,10 +20,13 @@ addons:
|
||||||
- libgmp-dev
|
- libgmp-dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
|
- mkdir -p $HOME/.local/bin
|
||||||
|
- (cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
|
||||||
|
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
||||||
- ghc --version
|
- ghc --version
|
||||||
- cabal --version
|
- cabal --version
|
||||||
|
- stack --version
|
||||||
- travis_retry cabal update
|
- travis_retry cabal update
|
||||||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ extra-deps:
|
||||||
- base-compat-0.9.0
|
- base-compat-0.9.0
|
||||||
- engine-io-wai-1.0.2
|
- engine-io-wai-1.0.2
|
||||||
- control-monad-omega-0.3.1
|
- control-monad-omega-0.3.1
|
||||||
- should-not-typecheck-2.0.1
|
- should-not-typecheck-2.1.0
|
||||||
- markdown-unlit-0.4.0
|
- markdown-unlit-0.4.0
|
||||||
- aeson-0.11.0.0
|
- aeson-0.11.0.0
|
||||||
- fail-4.9.0.0
|
- fail-4.9.0.0
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
|
if [ -n "$STACK_YAML" ]; then
|
||||||
|
stack test --dry-run
|
||||||
|
fi
|
||||||
|
|
||||||
for package in $(cat sources.txt) doc/tutorial ; do
|
for package in $(cat sources.txt) doc/tutorial ; do
|
||||||
echo testing $package
|
echo testing $package
|
||||||
pushd $package
|
pushd $package
|
||||||
|
|
Loading…
Reference in a new issue