added the -p flag to remove standard pkg system files from the build

This commit is contained in:
Ryan Plessner 2015-01-07 10:39:19 -05:00
parent 1e623869cb
commit db9c445729
2 changed files with 6 additions and 3 deletions

View File

@ -9,4 +9,4 @@ before_install:
script:
- /usr/racket/bin/raco pkg install $TRAVIS_BUILD_DIR
- /usr/racket/bin/raco test $TRAVIS_BUILD_DIR
- /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage -e scribblings $TRAVIS_BUILD_DIR
- /usr/racket/bin/raco cover -c coveralls -d $TRAVIS_BUILD_DIR/coverage -p $TRAVIS_BUILD_DIR

View File

@ -7,7 +7,7 @@
(define coverage-dir "coverage")
(define output-format "html")
(define exclude-paths '("info.rkt" "tests"))
(define exclude-paths '())
(define include-exts '())
(define args
@ -23,9 +23,12 @@
[("-v" "--verbose")
"Verbose mode"
(verbose #t)]
[("-p" "--exclude-pkg-defaults")
"exclude info.rkt, the tests directory, and the scribblings directory from the coverage report"
(set! exclude-paths (append '("info.rkt" "tests" "scribblings") exclude-paths))]
#:multi
[("-e" "--exclude-from-output") t
"exclude all paths named this from the coverage report. By default excludes info.rkt and the tests directory"
"exclude any paths named this from the coverage report."
(set! exclude-paths (cons t exclude-paths))]
[("-i" "--include-extentions") f
"include these extentions in files to cover."