haskell-src-meta
haskell-src-meta copied to clipboard
Travis ignores the `splices` test-suite
A build error in the splices test-suite went unnoticed because Travis wasn't running it. To reproduce:
$ cabal --with-ghc=ghc-7.10.3 new-test
[1 of 1] Compiling Main
tests/Splices.hs:12:3: Not in scope: type variable ‘a’
tests/Splices.hs:12:3: Not in scope: type variable ‘a’
It fails on GHC < 8 (template-haskell < 2.11)
Here's a comparison of the logs for GHC 7.10.3:
Building test suite 'unit' for haskell-src-meta-0.8.0.2..
Running 1 test suites...
Test suite unit: RUNNING...
Deriving clauses preserved: [OK]
...
Test suite unit: PASS
vs
ckoparkar/haskell-src-meta (which uses a Travis config that was re-generated with haskell-ci)
Building test suite 'unit' for haskell-src-meta-0.8.0.4..
[1 of 1] Compiling Main ( tests/Main.hs, /tmp/dist-test.793d/dist-newstyle/build/x86_64-linux/ghc-7.10.3/haskell-src-meta-0.8.0.4/t/unit/build/unit/unit-tmp/Main.o )
Linking /tmp/dist-test.793d/dist-newstyle/build/x86_64-linux/ghc-7.10.3/haskell-src-meta-0.8.0.4/t/unit/build/unit/unit ...
Configuring test suite 'splices' for haskell-src-meta-0.8.0.4..
Preprocessing test suite 'splices' for haskell-src-meta-0.8.0.4..
Building test suite 'splices' for haskell-src-meta-0.8.0.4..
[1 of 1] Compiling Main ( tests/Splices.hs, /tmp/dist-test.793d/dist-newstyle/build/x86_64-linux/ghc-7.10.3/haskell-src-meta-0.8.0.4/t/splices/build/splices/splices-tmp/Main.o )
tests/Splices.hs:12:3: Not in scope: type variable ‘a’