mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-28 00:48:18 +03:00
Upgrade Travis CI to container-based infrastructure
This commit is contained in:
parent
021317c2d3
commit
daa7547178
35
.travis.yml
35
.travis.yml
@ -1,25 +1,26 @@
|
|||||||
language: haskell
|
language: c
|
||||||
|
|
||||||
env:
|
sudo: false
|
||||||
matrix:
|
|
||||||
- GHC_VERSION=7.4.2 CABAL_VERSION=1.18
|
matrix:
|
||||||
- GHC_VERSION=7.6.3 CABAL_VERSION=1.20
|
include:
|
||||||
- GHC_VERSION=7.8.4 CABAL_VERSION=1.20
|
- env: CABALVER=1.16 GHCVER=7.6.3
|
||||||
- GHC_VERSION=7.10.1 CABAL_VERSION=1.22
|
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3], sources: [hvr-ghc]}}
|
||||||
|
- 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
|
||||||
|
Loading…
Reference in New Issue
Block a user