Skip to content

Commit

Permalink
Test fancy-regex mode in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
trishume committed Mar 21, 2020
1 parent 4f09143 commit 0a74d87
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ cache:
script:
- cargo build
- cargo test --features metadata
# Run these tests in release mode since they're slow as heck otherwise
- cargo test --features default-fancy --no-default-features --release
- make assets
- make syntest
- make syntest-fancy
- rm -Rf examples
# Only run doc build on stable until this is fixed: https://github.com/rust-lang/rust/issues/51661
- |
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ syntest: $(SUBMODULES)
cargo run --release --example syntest -- testdata/Packages testdata/Packages --summary | diff -U 1000000 testdata/known_syntest_failures.txt -
@echo No new failures!

syntest-fancy: $(SUBMODULES)
@echo Tip: Run make update-known-failures to update the known failures file.
cargo run --features default-fancy --no-default-features --release --example syntest -- testdata/Packages testdata/Packages --summary | diff -U 1000000 testdata/known_syntest_failures_fancy.txt -
@echo No new failures!

update-known-failures: $(SUBMODULES)
cargo run --release --example syntest -- testdata/Packages testdata/Packages --summary | tee testdata/known_syntest_failures.txt

update-known-failures-fancy: $(SUBMODULES)
cargo run --features default-fancy --no-default-features --release --example syntest -- testdata/Packages testdata/Packages --summary | tee testdata/known_syntest_failures_fancy.txt
4 changes: 4 additions & 0 deletions testdata/known_syntest_failures_fancy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
loading syntax definitions from testdata/Packages
FAILED testdata/Packages/C#/tests/syntax_test_Strings.cs: 38
FAILED testdata/Packages/LaTeX/syntax_test_latex.tex: 1
exiting with code 1

0 comments on commit 0a74d87

Please sign in to comment.