@@ -18,6 +18,13 @@ env:
19 - GHC_OPTIONS="-O0 -Werror"
19 - GHC_OPTIONS="-O0 -Werror"
21# The different configurations we want to test. We have BUILD=cabal which uses
28# The different configurations we want to test. We have BUILD=cabal which uses
22# cabal-install, and BUILD=stack which uses Stack. More documentation on each
29# cabal-install, and BUILD=stack which uses Stack. More documentation on each
23# of those below.
30# of those below.
@@ -44,7 +51,6 @@ matrix:
44 CABALARGS=""
51 CABALARGS=""
45 TESTPATTERN="! /Round trip/"
52 TESTPATTERN="! /Round trip/"
46 compiler: ": #GHC 7.10.3"
53 compiler: ": #GHC 7.10.3"
47− addons: {apt: {packages: [cabal-install-2.0,ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
49 # don't build benchmarks for ghc 8.0.2, because build takes too long...
55 # don't build benchmarks for ghc 8.0.2, because build takes too long...
@@ -55,7 +61,6 @@ matrix:
55 CABALARGS=""
61 CABALARGS=""
56 TESTPATTERN="! /Round trip/"
62 TESTPATTERN="! /Round trip/"
57 compiler: ": #GHC 8.0.2"
63 compiler: ": #GHC 8.0.2"
58− addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2,happy-1.19.5], sources: [hvr-ghc]}}
61 BUILD=cabal
66 BUILD=cabal
@@ -65,7 +70,6 @@ matrix:
65 CABALARGS="--enable-benchmarks"
70 CABALARGS="--enable-benchmarks"
66 TESTPATTERN="! /Round trip/"
71 TESTPATTERN="! /Round trip/"
67 compiler: ": #GHC 8.2.2"
72 compiler: ": #GHC 8.2.2"
68− addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5], sources: [hvr-ghc]}}
71 BUILD=cabal
75 BUILD=cabal
@@ -75,7 +79,6 @@ matrix:
75 CABALARGS="--enable-benchmarks"
79 CABALARGS="--enable-benchmarks"
76 TESTPATTERN="! /Round trip/"
80 TESTPATTERN="! /Round trip/"
77 compiler: ": #GHC 8.4.3"
81 compiler: ": #GHC 8.4.3"
78− addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.3,happy-1.19.5], sources: [hvr-ghc]}}
80 # - env: >-
83 # - env: >-
81 # BUILD=cabal
84 # BUILD=cabal
@@ -101,17 +104,17 @@ matrix:
101 - env: >-
104 - env: >-
102 BUILD=stack
105 BUILD=stack
103 ARGS="--resolver lts-12"
106 ARGS="--resolver lts-12"
104 TESTPATTERN="! /Round trip/"
108 TESTPATTERN="! /Round trip/"
105 compiler: ": #stack 8.4.3"
109 compiler: ": #stack 8.4.3"
106− addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
108 # Nightly builds are allowed to fail
111 # Nightly builds are allowed to fail
109 - env: >-
112 - env: >-
110 BUILD=stack
113 BUILD=stack
111 ARGS="--resolver nightly"
114 ARGS="--resolver nightly"
112 TESTPATTERN="."
116 TESTPATTERN="."
113 compiler: ": #stack nightly"
117 compiler: ": #stack nightly"
114− addons: {apt: {packages: [ghc-8.4.3], sources: [hvr-ghc]}}
116 # - env: BUILD=stack ARGS="--resolver lts-8"
119 # - env: BUILD=stack ARGS="--resolver lts-8"
117 # compiler: ": #stack 8.0.2 osx"
120 # compiler: ": #stack 8.0.2 osx"
@@ -126,6 +129,7 @@ matrix:
126 - env: >-
129 - env: >-
127 BUILD=stack
130 BUILD=stack
128 ARGS="--resolver nightly"
131 ARGS="--resolver nightly"
129 TESTPATTERN="."
133 TESTPATTERN="."
131 fast_finish: true
135 fast_finish: true
@@ -133,6 +137,7 @@ matrix:
133before_install:
137before_install:
134# Using compiler above sets CC to an invalid value, so unset it
138# Using compiler above sets CC to an invalid value, so unset it
135- unset CC
139- unset CC
140+- sudo apt-get install ${GHCVER:+ghc-$GHCVER} ${CABALVER:+cabal-install-$CABALVER}
136- 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
141- 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
137# Download and unpack the stack executable
142# Download and unpack the stack executable