Skip to content

Commit 8c3ece6

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 8c3ece6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci.sh

+9
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ 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 "Nightly features"
131+
NIGHTLY_FEATURES="--features=peer-credentials-authenticator"
132+
RUST_BACKTRACE=1 cargo test +nightly $NIGHTLY_FEATURES
133+
125134
# Removing any mappings left over from integration tests
126135
rm -rf mappings/
127136

0 commit comments

Comments
 (0)