Skip to content
Snippets Groups Projects
Commit c9018838 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Travis-CI job: s/GHVER=7.8.1/GHCVER=7.8.2/g

...and exploit new `cabal-install-1.18` package installing into `/opt/cabal/1.18/bin`
parent d64c539e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ env:
- GHCVER=7.0.4
- GHCVER=7.4.2
- GHCVER=7.6.3
- GHCVER=7.8.1
- GHCVER=7.8.2
- GHCVER=head
# Note: the distinction between `before_install` and `install` is not important.
......@@ -13,28 +13,28 @@ before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER-prof ghc-$GHCVER-dyn happy
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$PATH
install:
- sudo /opt/ghc/$GHCVER/bin/ghc-pkg recache
- /opt/ghc/$GHCVER/bin/ghc-pkg recache --user
- cabal-1.18 update
- cabal update
- cd Cabal
- cabal-1.18 install --only-dependencies --enable-tests --enable-benchmarks
- cabal install --only-dependencies --enable-tests --enable-benchmarks
# 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:
- cabal-1.18 configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
- cabal-1.18 build # this builds all libraries and executables (including tests/benchmarks)
- cabal-1.18 test
- cabal-1.18 check
- cabal-1.18 sdist # tests that a source-distribution can be generated
- cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
- cabal build # this builds all libraries and executables (including tests/benchmarks)
- cabal test
- cabal check
- cabal sdist # tests that a source-distribution can be generated
# The following scriptlet checks that the resulting source distribution can be built & installed
- function install_from_tarball {
export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
if [ -f "dist/$SRC_TGZ" ]; then
cabal-1.18 install "dist/$SRC_TGZ";
cabal install "dist/$SRC_TGZ";
else
echo "expected 'dist/$SRC_TGZ' not found";
exit 1;
......@@ -44,13 +44,13 @@ script:
# Also build cabal-install.
- cd ../cabal-install
- cabal-1.18 sandbox init
- cabal-1.18 sandbox add-source ../Cabal
- cabal-1.18 install --dependencies-only
- cabal-1.18 configure
- cabal-1.18 build
- cabal-1.18 check
- cabal-1.18 sdist
- cabal sandbox init
- cabal sandbox add-source ../Cabal
- cabal install --dependencies-only
- cabal configure
- cabal build
- cabal check
- cabal sdist
- install_from_tarball
matrix:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment