Travis fixes
This commit is contained in:
parent
0fcd9b3c98
commit
29443a4c02
26
.travis.yml
26
.travis.yml
@ -1,17 +1,3 @@
|
|||||||
language: haskell
|
|
||||||
|
|
||||||
install:
|
|
||||||
- cabal update
|
|
||||||
- cabal install --force-reinstalls hspec cabal-meta cabal-src alex
|
|
||||||
- cabal-meta install --force-reinstalls
|
|
||||||
|
|
||||||
script:
|
|
||||||
- echo Done
|
|
||||||
- cabal-meta install --enable-tests
|
|
||||||
- mega-sdist --test
|
|
||||||
- cabal install hspec cabal-meta cabal-src
|
|
||||||
- cabal-meta install --force-reinstalls
|
|
||||||
|
|
||||||
# NB: don't set `language: haskell` here
|
# NB: don't set `language: haskell` here
|
||||||
|
|
||||||
# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
|
# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
|
||||||
@ -32,18 +18,8 @@ install:
|
|||||||
- cabal --version
|
- cabal --version
|
||||||
- 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 '?')]"
|
||||||
- travis_retry cabal update
|
- travis_retry cabal update
|
||||||
- cabal install cabal-meta alex happy
|
- cabal install cabal-src cabal-meta alex happy
|
||||||
|
|
||||||
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
|
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
|
||||||
script:
|
script:
|
||||||
- cabal-meta install --only-dependencies --run-tests --enable-benchmarks --force-reinstalls
|
- cabal-meta install --only-dependencies --run-tests --enable-benchmarks --force-reinstalls
|
||||||
|
|
||||||
# The following scriptlet checks that the resulting source distribution can be built & installed
|
|
||||||
- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
|
|
||||||
cd dist/;
|
|
||||||
if [ -f "$SRC_TGZ" ]; then
|
|
||||||
cabal install --force-reinstalls "$SRC_TGZ";
|
|
||||||
else
|
|
||||||
echo "expected '$SRC_TGZ' not found";
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user