.travis.yml: simplify GHC and cabal package handling
This reduces duplicate information on GHC and cabal versions when defining build environments.
This commit is contained in:
parent
dc4b5cb0e5
commit
ebb35e613c
1 changed files with 11 additions and 6 deletions
17
.travis.yml
17
.travis.yml
|
@ -18,6 +18,13 @@ env:
|
||||||
global:
|
global:
|
||||||
- GHC_OPTIONS="-O0 -Werror"
|
- GHC_OPTIONS="-O0 -Werror"
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- happy-1.19.5
|
||||||
|
sources:
|
||||||
|
- hvr-ghc
|
||||||
|
|
||||||
# The different configurations we want to test. We have BUILD=cabal which uses
|
# The different configurations we want to test. We have BUILD=cabal which uses
|
||||||
# cabal-install, and BUILD=stack which uses Stack. More documentation on each
|
# cabal-install, and BUILD=stack which uses Stack. More documentation on each
|
||||||
# of those below.
|
# of those below.
|
||||||
|
@ -44,7 +51,6 @@ matrix:
|
||||||
CABALARGS=""
|
CABALARGS=""
|
||||||
TESTPATTERN="! /Round trip/"
|
TESTPATTERN="! /Round trip/"
|
||||||
compiler: ": #GHC 7.10.3"
|
compiler: ": #GHC 7.10.3"
|
||||||
addons: {apt: {packages: [cabal-install-2.0,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
# don't build benchmarks for ghc 8.0.2, because build takes too long...
|
# don't build benchmarks for ghc 8.0.2, because build takes too long...
|
||||||
- env: >-
|
- env: >-
|
||||||
|
@ -55,7 +61,6 @@ matrix:
|
||||||
CABALARGS=""
|
CABALARGS=""
|
||||||
TESTPATTERN="! /Round trip/"
|
TESTPATTERN="! /Round trip/"
|
||||||
compiler: ": #GHC 8.0.2"
|
compiler: ": #GHC 8.0.2"
|
||||||
addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2,happy-1.19.5], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
- env: >-
|
- env: >-
|
||||||
BUILD=cabal
|
BUILD=cabal
|
||||||
|
@ -65,7 +70,6 @@ matrix:
|
||||||
CABALARGS="--enable-benchmarks"
|
CABALARGS="--enable-benchmarks"
|
||||||
TESTPATTERN="! /Round trip/"
|
TESTPATTERN="! /Round trip/"
|
||||||
compiler: ": #GHC 8.2.2"
|
compiler: ": #GHC 8.2.2"
|
||||||
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
- env: >-
|
- env: >-
|
||||||
BUILD=cabal
|
BUILD=cabal
|
||||||
|
@ -75,7 +79,6 @@ matrix:
|
||||||
CABALARGS="--enable-benchmarks"
|
CABALARGS="--enable-benchmarks"
|
||||||
TESTPATTERN="! /Round trip/"
|
TESTPATTERN="! /Round trip/"
|
||||||
compiler: ": #GHC 8.4.3"
|
compiler: ": #GHC 8.4.3"
|
||||||
addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3,happy-1.19.5], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
# - env: >-
|
# - env: >-
|
||||||
# BUILD=cabal
|
# BUILD=cabal
|
||||||
|
@ -101,17 +104,17 @@ matrix:
|
||||||
- env: >-
|
- env: >-
|
||||||
BUILD=stack
|
BUILD=stack
|
||||||
ARGS="--resolver lts-12"
|
ARGS="--resolver lts-12"
|
||||||
|
GHCVER=8.4.3
|
||||||
TESTPATTERN="! /Round trip/"
|
TESTPATTERN="! /Round trip/"
|
||||||
compiler: ": #stack 8.4.3"
|
compiler: ": #stack 8.4.3"
|
||||||
addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
# Nightly builds are allowed to fail
|
# Nightly builds are allowed to fail
|
||||||
- env: >-
|
- env: >-
|
||||||
BUILD=stack
|
BUILD=stack
|
||||||
ARGS="--resolver nightly"
|
ARGS="--resolver nightly"
|
||||||
|
GHCVER=8.4.3
|
||||||
TESTPATTERN="."
|
TESTPATTERN="."
|
||||||
compiler: ": #stack nightly"
|
compiler: ": #stack nightly"
|
||||||
addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
|
|
||||||
|
|
||||||
# - env: BUILD=stack ARGS="--resolver lts-8"
|
# - env: BUILD=stack ARGS="--resolver lts-8"
|
||||||
# compiler: ": #stack 8.0.2 osx"
|
# compiler: ": #stack 8.0.2 osx"
|
||||||
|
@ -126,6 +129,7 @@ matrix:
|
||||||
- env: >-
|
- env: >-
|
||||||
BUILD=stack
|
BUILD=stack
|
||||||
ARGS="--resolver nightly"
|
ARGS="--resolver nightly"
|
||||||
|
GHCVER=8.4.3
|
||||||
TESTPATTERN="."
|
TESTPATTERN="."
|
||||||
|
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
@ -133,6 +137,7 @@ matrix:
|
||||||
before_install:
|
before_install:
|
||||||
# Using compiler above sets CC to an invalid value, so unset it
|
# Using compiler above sets CC to an invalid value, so unset it
|
||||||
- unset CC
|
- unset CC
|
||||||
|
- sudo apt-get install ${GHCVER:+ghc-$GHCVER} ${CABALVER:+cabal-install-$CABALVER}
|
||||||
- export PATH=/opt/happy/1.19.5/bin/:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/cabal/bin:$HOME/.local/bin:$HOME/.cabal/bin:$PATH
|
- export PATH=/opt/happy/1.19.5/bin/:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/cabal/bin:$HOME/.local/bin:$HOME/.cabal/bin:$PATH
|
||||||
# Download and unpack the stack executable
|
# Download and unpack the stack executable
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Reference in a new issue