Skip to content

Commit 2ffc4fb

Browse files
author
Joe Ellis
committed
Add support for testing features that require a nightly Rust build
Certain features require a nightly build of the Rust toolchain. For example, the peer credentials authenticator currently (Sep 2020) requires the nightly Rust compiler, because the `peer_cred` functionality it depends on is only available in the nightly builds. Nonetheless, we still want to be able to test this functionality. This commit adds a section to the CI script to allow us to test these sorts of features with the nightly Rust toolchain. Signed-off-by: Joe Ellis <[email protected]>
1 parent f193c43 commit 2ffc4fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ fi
122122
echo "Unit, doc and integration tests"
123123
RUST_BACKTRACE=1 cargo test $FEATURES
124124

125+
# Run tests for Parsec features that require a nightly version of the compiler
126+
# to function. For example: Unix peer credentials authenticator is currently
127+
# only functional if we use the nightly compiler, since it depends on the
128+
# `peer_cred` function.
129+
# TODO: change this list as features trickle into the stable branch.
130+
echo "Unit testing peer credentials authenticator"
131+
RUST_BACKTRACE=1 cargo +nightly test --features=peer-credentials-authenticator
132+
125133
# Removing any mappings left over from integration tests
126134
rm -rf mappings/
127135

0 commit comments

Comments
 (0)