#!/bin/bash
# This script is invoked from my Travis-CI commands
# It bootstraps to grab the 'neil' tool and run 'neil test'
set -e # exit on errors
set -x # echo each line
cabal update
cabal install --only-dependencies --enable-tests
git clone https://github.com/ndmitchell/neil
(cd neil && cabal install --flags=small)
export PATH=/home/travis/.cabal/bin:$PATH
neil test --install
if [ -e travis.hs ]; then
    runhaskell travis.hs
fi
git diff --exit-code # check regenerating doesn't change anything

#!/bin/bash
# This script is invoked from my Travis-CI commands
# It bootstraps to grab the 'neil' tool and run 'neil test'
set -e # exit on errors
set -x # echo each line
cabal update
cabal install --only-dependencies --enable-tests
git clone https://github.com/ndmitchell/neil
(cd neil && cabal install --flags=small --verbose)
export PATH=/home/travis/.cabal/bin:$PATH
echo $PATH
~/.cabal/bin/neil --help
neil --help
neil test --install --verbose
if [ -e travis.hs ]; then
    runhaskell travis.hs
fi
git diff --exit-code # check regenerating doesn't change anything

--- 
+++ 
@@ -6,9 +6,12 @@
 cabal update
 cabal install --only-dependencies --enable-tests
 git clone https://github.com/ndmitchell/neil
-(cd neil && cabal install --flags=small)
+(cd neil && cabal install --flags=small --verbose)
 export PATH=/home/travis/.cabal/bin:$PATH
-neil test --install
+echo $PATH
+~/.cabal/bin/neil --help
+neil --help
+neil test --install --verbose
 if [ -e travis.hs ]; then
     runhaskell travis.hs
 fi
Remove --verbose, since the command doesn't support it
