Commit f09d65fe authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Run gen-extra-source-files.sh in Travis.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent bf4d05ef
......@@ -33,6 +33,9 @@ script:
# Cabal
- cd Cabal
# Test if gen-extra-source-files.sh was run recently enough
- ./misc/gen-extra-source-files.sh
- ./misc/travis-diff-files.sh
- mkdir -p ./dist/setup
- cp Setup.hs ./dist/setup/setup.hs
- ghc --make -odir ./dist/setup -hidir ./dist/setup -i -i. ./dist/setup/setup.hs -o ./dist/setup/setup -Wall -Werror -threaded # the command cabal-install would use to build setup
......
......@@ -112,7 +112,6 @@ extra-source-files:
tests/PackageTests/TemplateHaskell/vanilla/Lib.hs
tests/PackageTests/TemplateHaskell/vanilla/TH.hs
tests/PackageTests/TemplateHaskell/vanilla/my.cabal
tests/PackageTests/Tests.hs
tests/PackageTests/TestOptions/TestOptions.cabal
tests/PackageTests/TestOptions/test-TestOptions.hs
tests/PackageTests/TestStanza/my.cabal
......
#!/bin/sh
set -ex
find tests -type f \( -name '*.hs' -or -name '*.lhs' -or -name '*.c' -or -name '*.sh' \
-or -name '*.cabal' -or -name '*.hsc' \) -and -not -regex ".*/dist/.*" \
| awk '/Check.hs$|UnitTests|PackageTester|autogen|PackageTests.hs|CreatePipe/ { next } { print }' \
| LC_COLLATE=C sort \
| LC_ALL=C sort \
| sed -e 's/^/ /' \
> misc/source-file-list
......
#!/bin/sh
! git diff-files -p --exit-code
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment