Fix system-lua test
@@ -73,14 +73,15 @@ script:
cd ..
# Compile and link using system-wide Lua
- CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --constraint 'hslua +system-lua'"
- CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --extra-include-dirs=${HOME}/usr/include"
- CABAL_CONFIG_ARGS="$CABAL_CONFIG_ARGS --extra-lib-dirs=${HOME}/usr/lib"
+ printf "constraint: hslua +system-lua\n" > cabal.project.local
+ printf "extra-include-dirs: ${HOME}/usr/include\n" >> cabal.project.local
+ printf "extra-lib-dirs: ${HOME}/usr/lib\n" >> cabal.project.local
;;
+ (*):
+ cabal new-configure --enable-tests --disable-optimization
esac
- export LD_LIBRARY_PATH=${HOME}/usr/lib:$LD_LIBRARY_PATH
- echo $CABAL_CONFIG_ARGS
- - cabal new-configure --enable-tests --disable-optimization $CABAL_CONFIG_ARGS
- cabal new-build
- cabal new-test
- cabal sdist
