Upgrade Travis CI to container-based infrastructure

This commit is contained in:
Juan Pedro Villa Isaza 2015-09-09 14:39:31 -05:00
parent 021317c2d3
commit daa7547178

View File

@ -1,25 +1,26 @@
language: haskell language: c
sudo: false
env:
matrix: matrix:
- GHC_VERSION=7.4.2 CABAL_VERSION=1.18 include:
- GHC_VERSION=7.6.3 CABAL_VERSION=1.20 - env: CABALVER=1.16 GHCVER=7.6.3
- GHC_VERSION=7.8.4 CABAL_VERSION=1.20 addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
- GHC_VERSION=7.10.1 CABAL_VERSION=1.22 - env: CABALVER=1.18 GHCVER=7.8.4
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4], sources: [hvr-ghc]}}
- env: CABALVER=1.22 GHCVER=7.10.2
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.2],sources: [hvr-ghc]}}
before_install: before_install:
- sudo apt-add-repository -y ppa:hvr/ghc - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- sudo apt-get update
- sudo apt-get install -y ghc-$GHC_VERSION cabal-install-$CABAL_VERSION
- export PATH=/opt/ghc/$GHC_VERSION/bin:/opt/cabal/$CABAL_VERSION/bin:$PATH
install: install:
- cabal update - cabal update
- cabal sandbox init - cabal install --only-dependencies
- cabal install --only-dependencies --enable-tests
script: script:
- cabal configure - cabal configure
- cabal build # this builds all libraries and executables - cabal build
- cabal check # check for warnings # - cabal test
- cabal sdist # tests that a source-distribution can be generated - cabal check
- cabal sdist