aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Lin <timtylin@gmail.com>2015-04-25 03:29:42 -0700
committerTim Lin <timtylin@gmail.com>2015-04-25 03:29:42 -0700
commit0c1b87780fd3f75ea81994877c222928104480f0 (patch)
tree7368c9e1dbf93766c548b0fb19f6a801beb6c268
parent095b05e4f97301355e20d81135dfb20142eb767f (diff)
downloadpandoc-0c1b87780fd3f75ea81994877c222928104480f0.tar.gz
updates travis apt installs to the new sudo-less syntax
New syntax is specified here: http://docs.travis-ci.com/user/apt/
-rw-r--r--.travis.yml25
1 files changed, 15 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 4ec48b8a3..0d98407b3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,19 +1,24 @@
# NB: don't set `language: haskell` here
+# Ensures that sudo is disabled, so that containerized builds are allowed
+sudo: false
+
# 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.
-env:
-# - GHCVER=6.12.3
- - CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror"
- - CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror"
- - CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror" # see note on Alex/Happy
- - CABALVER=1.22 GHCVER=7.10.1 GHCOPTS=""
-# - GHCVER=head # see section about GHC HEAD snapshots
+matrix:
+ include:
+ - env: CABALVER=1.16 GHCVER=7.4.2 GHCOPTS="-Werror"
+ addons: {apt: {packages: [cabal-install-1.16, ghc-7.4.2], sources: [hvr-ghc]}}
+ - env: CABALVER=1.18 GHCVER=7.6.3 GHCOPTS="-Werror"
+ addons: {apt: {packages: [cabal-install-1.18, ghc-7.6.3], sources: [hvr-ghc]}}
+ - env: CABALVER=1.18 GHCVER=7.8.4 GHCOPTS="-Werror"
+ addons: {apt: {packages: [cabal-install-1.18, ghc-7.8.4], sources: [hvr-ghc]}}
+ - env: CABALVER=1.22 GHCVER=7.10.1 GHCOPTS=""
+ addons: {apt: {packages: [cabal-install-1.22, ghc-7.10.1],sources: [hvr-ghc]}}
+# - env: CABALVER=head GHCVER=head GHCOPTS="-Werror"
+# addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
# Note: the distinction between `before_install` and `install` is not important.
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-$CABALVER ghc-$GHCVER
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install: