Skip to content

Commit

Permalink
refactor(build): Make test target combination of regressions and busted
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 20, 2020
1 parent bdcd925 commit 93075c9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ task:
- ./configure --with-system-luarocks CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
- gmake all
- gmake install
test_script: gmake test
test_script: gmake regressions
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ before_script:
script:
- fold_unless_fail 'Building' 'build' sh -c './bootstrap.sh && ./configure && make'
- fold_unless_fail 'Busted' 'busted' make busted
- fold_unless_fail 'Run regression tests' 'regression' make --output-sync test
- fold_unless_fail 'Run regression tests' 'regression' make --output-sync regressions
- fold_unless_fail 'Compile documentation and examples' 'compile_docs' make --output-sync docs examples
after_success:
- $COVERAGE && travis_wait make coverage
Expand Down
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ selfcheck: all
./sile -o $$output - <<< "<sile>foo</sile>"
pdfinfo $$output | grep SILE

.PHONY: test
test: $(TESTSRCS) $(ACTUALS)
.PHONY: regressions
regressions: $(TESTSRCS) $(ACTUALS)
$(LOCALTESTFONTS) $(REGRESSIONSCRIPT) $(TESTSRCS)

.PHONY: test
test: regressions busted

.PHONY: lint
lint: luacheck luarocks-lint

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "SILE Typesetter",
"main": "sile",
"scripts": {
"test": "make test && make busted",
"test": "make test",
"release": "standard-version"
},
"repository": {
Expand Down

0 comments on commit 93075c9

Please sign in to comment.