Add test.sh. (#173)

This emulates the test matrix that gets run in CI, making it easier to
find failures locally.

There was one conflict in the matrix: when JSON is enabled and TLS is
disabled, two of the doctests would fail. This was previous worked
around as an exclude in the github workflow. I changed the JSON doctest
to use HTTP instead.
This commit is contained in:
Jacob Hoffman-Andrews
2020-10-03 20:47:35 -07:00
committed by GitHub
parent b8d02f9785
commit b58a3a53b0
3 changed files with 18 additions and 5 deletions

View File

@@ -37,9 +37,6 @@ jobs:
what:
- "--doc"
- "--tests"
exclude:
- tls: ""
what: "--doc"
env:
RUST_BACKTRACE: "1"
RUSTFLAGS: "-D dead_code -D unused-variables -D unused"