Test sdist on release* branch. Directly otherwise
This commit is contained in:
parent
c5c86c4ec1
commit
98ac91dd72
21
.travis.yml
21
.travis.yml
@ -42,18 +42,19 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- cabal check
|
- cabal check
|
||||||
|
- |
|
||||||
|
case "$TRAVIS_BRANCH" of
|
||||||
|
"release"*)
|
||||||
|
touch ChangeLog
|
||||||
|
sdistdir="$TRAVIS_BUILD_DIR/../sdist-test"
|
||||||
|
mkdir -p "$sdistdir"
|
||||||
|
tar zvxf $(stack sdist 2>&1 | tail -n1 | sed 's/.* //') --strip-components=1 -C "$sdistdir"
|
||||||
|
cp "ghc-$GHCVER.yaml" stack.yaml "$sdistdir"
|
||||||
|
cd "$sdistdir"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
- stack --no-terminal build --test --no-run-tests
|
- stack --no-terminal build --test --no-run-tests
|
||||||
- stack --no-terminal test ghc-mod:spec
|
- stack --no-terminal test ghc-mod:spec
|
||||||
- |
|
|
||||||
if [ -r "$TRAVIS_BUILD_DIR/ChangeLog" ]; then
|
|
||||||
sdistdir="$TRAVIS_BUILD_DIR/../sdist-test"
|
|
||||||
mkdir -p "$sdistdir"
|
|
||||||
tar zvxf $(stack sdist 2>&1 | tail -n1 | sed 's/.* //') --strip-components=1 -C "$sdistdir"
|
|
||||||
cp "ghc-$GHCVER.yaml" stack.yaml "$sdistdir"
|
|
||||||
cd "$sdistdir"
|
|
||||||
stack --no-terminal build --test --no-run-tests
|
|
||||||
stack --no-terminal test ghc-mod:spec
|
|
||||||
fi
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
Reference in New Issue
Block a user