Improve 'make check'.
This commit is contained in:
parent
bc947a4496
commit
6b0a560ae7
2 changed files with 15 additions and 10 deletions
23
Makefile
23
Makefile
|
@ -43,6 +43,19 @@ ghci:
|
|||
haddock:
|
||||
stack haddock
|
||||
|
||||
check: check-cabal checkdocs
|
||||
cabal check # check cabal file
|
||||
cabal outdated # check cabal dependencies
|
||||
lsd # check that stack.yaml dependencies are up to date
|
||||
|
||||
check-cabal: git-files.txt sdist-files.txt
|
||||
@echo "Checking to see if all committed test/data files are in sdist."
|
||||
diff -u $^
|
||||
|
||||
checkdocs:
|
||||
@echo "Checking for tabs in manual."
|
||||
! grep -q -n -e "\t" MANUAL.txt changelog.md
|
||||
|
||||
# Note: to accept current results of golden tests,
|
||||
# make test TESTARGS='--accept'
|
||||
test:
|
||||
|
@ -82,10 +95,6 @@ dist: man/pandoc.1
|
|||
cd pandoc-${version}
|
||||
stack setup && stack test && cd .. && rm -rf "pandoc-${version}"
|
||||
|
||||
check: checkdocs check-cabal
|
||||
|
||||
checkdocs:
|
||||
! grep -q -n -e "\t" MANUAL.txt changelog.md
|
||||
|
||||
debpkg:
|
||||
docker run -v `pwd`:/mnt \
|
||||
|
@ -135,14 +144,10 @@ update-website:
|
|||
clean:
|
||||
stack clean
|
||||
|
||||
check-cabal: git-files.txt sdist-files.txt
|
||||
echo "Checking to see if all committed test/data files are in sdist."
|
||||
diff -u $^
|
||||
|
||||
sdist-files.txt: .FORCE
|
||||
cabal sdist --list-only | sed 's/\.\///' | grep '^\(test\|data\)\/' | sort > $@
|
||||
|
||||
git-files.txt: .FORCE
|
||||
git ls-tree -r --name-only HEAD | grep '^\(test\|data\)\/' | sort > $@
|
||||
|
||||
.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal
|
||||
.PHONY: .FORCE deps quick full haddock install clean test bench changes_github dist prof download_stats reformat lint weigh doc/lua-filters.md pandoc-templates trypandoc update-website debpkg checkdocs ghcid ghci fix_spacing hlint check check-cabal check
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[ ] use 'policeman' to check API changes and version update
|
||||
[ ] make check
|
||||
[ ] make README.md and commit if needed
|
||||
[ ] make man/pandoc.1 and commit if needed
|
||||
[ ] Finalize changelog
|
||||
|
|
Loading…
Add table
Reference in a new issue