Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
f09d65fe
Commit
f09d65fe
authored
Dec 28, 2015
by
Edward Z. Yang
Browse files
Run gen-extra-source-files.sh in Travis.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
bf4d05ef
Changes
4
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
f09d65fe
...
...
@@ -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
...
...
Cabal/Cabal.cabal
View file @
f09d65fe
...
...
@@ -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
...
...
Cabal/misc/gen-extra-source-files.sh
View file @
f09d65fe
#!/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
...
...
Cabal/misc/travis-diff-files.sh
0 → 100755
View file @
f09d65fe
#!/bin/sh
!
git diff-files
-p
--exit-code
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment