@@ -12,19 +12,14 @@ function fail_maybe_explain {
13if [ -n "$TRAVIS" ];
13if [ -n "$TRAVIS" ];
15− # It takes a while to compile, let's not tax Travis' infrastructure for no
15+ mkdir -p ~/.local/bin
16− # reason. We can't cache it via cabsnap because that's based on the install-
16+ export PATH=$HOME/.local/bin:/opt/ghc/8.0.1/bin:$PATH
17− # plan for Idris, which of course doesn't have stylish-haskell as a
17+ curl --retry 3 -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
18− # dependency.
18+ stack install --resolver lts-7.2 stylish-haskell --no-terminal
19− STYLISH_EXE=$(mktemp)
20− wget -O $STYLISH_EXE "https://s3-us-west-2.amazonaws.com/idris-travis-binaries/stylish-haskell"
21− chmod +x $STYLISH_EXE
23− STYLISH_EXE=stylish-haskell
27−find . -name \*.hs -and \( -not -name Setup.hs \) | xargs $STYLISH_EXE -i > stylish-out 2>&1
22+find . -name \*.hs -and \( -not -name Setup.hs \) | xargs stylish-haskell -i > stylish-out 2>&1
29# It doesn't do exit codes properly, so we just check if it outputted anything.
24# It doesn't do exit codes properly, so we just check if it outputted anything.
30if [ -s stylish-out ];
25if [ -s stylish-out ];