on master help sign in
Migrate to Travis-CI container-based infrastructure

http://docs.travis-ci.com/user/migrating-from-legacy/

commit5a53b3788446961b6c422acb0a9b0a9ae6aad6b2 authorAaron VonderHaar <gruen0aermel@gmail.com> dateSun 13 Sep 2015, 09:08 (11 years ago) parent3008387
1 file changed+42−24
.travis.yml+42−24
.travis.yml+42−24
@@ -1,27 +1,45 @@
1−# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
2−
3−# NB: don't set `language: haskell` here
4−
5−# 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.
6−env:
7− - CABALVER=1.18 GHCVER=7.6.3
8− - CABALVER=1.18 GHCVER=7.8.3
9− - CABALVER=1.22 GHCVER=7.10.1
10−
11−
12−# Note: the distinction between `before_install` and `install` is not important.
13−before_install:
14− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
15− - travis_retry sudo apt-get update
16− - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
17− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
18− - |
19− if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
20− travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
21− export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
22− else
23− travis_retry sudo apt-get install happy alex
24− fi
1+sudo: false
2+
3+matrix:
4+ include:
5+ - env: GHC_VERSION=7.10.1
6+ addons:
7+ apt:
8+ sources:
9+ - hvr-ghc
10+ packages:
11+ - ghc-7.10.1
12+ - cabal-install-1.22
13+ - happy
14+ - alex
15+ before_install:
16+ - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
17+ - env: GHC_VERSION=7.8.3
18+ addons:
19+ apt:
20+ sources:
21+ - hvr-ghc
22+ packages:
23+ - ghc-7.8.3
24+ - cabal-install-1.18
25+ - happy-1.19.4
26+ - alex-3.1.3
27+ before_install:
28+ - export PATH=/opt/ghc/7.8.3/bin:/opt/cabal/1.18/bin:$PATH
29+ - export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
30+ - env: GHC_VERSION=7.6.3
31+ addons:
32+ apt:
33+ sources:
34+ - hvr-ghc
35+ packages:
36+ - ghc-7.6.3
37+ - cabal-install-1.18
38+ - happy-1.19.4
39+ - alex-3.1.3
40+ before_install:
41+ - export PATH=/opt/ghc/7.6.3/bin:/opt/cabal/1.18/bin:$PATH
42+ - export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
2543
2644
2745install: