on master help sign in
Made stack and GHC versions flexible
146f3baAhmad Salim Al-Sibahi
.travis.yml+1−1
@@ -8,7 +8,7 @@ env:
8
8
9matrix:
9matrix:
10 include:
10 include:
11− - env: CABALVER="1.24" GHCVER="8.0.1" STYLISH=YES
11+ - env: CABALVER="1.24" GHCVER="8.0.1" STACKVER="7.14" STYLISH=YES
12 addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,hscolour], sources: [hvr-ghc]}}
12 addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.1,hscolour], sources: [hvr-ghc]}}
13 - os: osx
13 - os: osx
14 env: CABALVER="1.24" GHCVER="8.0.1" TESTS="test_c"
14 env: CABALVER="1.24" GHCVER="8.0.1" TESTS="test_c"
stylize.sh+2−2
@@ -5,9 +5,9 @@ set -e
5if [ -n "$TRAVIS" ];
5if [ -n "$TRAVIS" ];
6then
6then
7 mkdir -p ~/.local/bin
7 mkdir -p ~/.local/bin
8− export PATH=$HOME/.local/bin:/opt/ghc/8.0.1/bin:$PATH
8+ export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
9 curl --retry 3 -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
9 curl --retry 3 -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
10− stack install --resolver lts-7.2 stylish-haskell --no-terminal
10+ stack install --resolver "lts-$STACKVER" stylish-haskell --no-terminal
11fi
11fi
12
12
13
13