-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ISSUE #231] Enhance CI * update CI * try pass CI * try pass CI * try pass CI * try pass CI * try pass x64 CI * try pass CI * try pass CI * add more CI * test aarch64-apple-darwin * Revert "test aarch64-apple-darwin" This reverts commit 6ebf3d9. * test aarch64-apple-darwin
- Loading branch information
1 parent
4f2e9b4
commit 46c921f
Showing
13 changed files
with
174 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -ex | ||
|
||
CARGO=cargo | ||
if [ "${CROSS}" = "1" ]; then | ||
export CARGO_NET_RETRY=5 | ||
export CARGO_NET_TIMEOUT=10 | ||
|
||
cargo install cross | ||
CARGO=cross | ||
fi | ||
|
||
# If a test crashes, we want to know which one it was. | ||
export RUST_TEST_THREADS=1 | ||
export RUST_BACKTRACE=1 | ||
|
||
# test monoio mod | ||
cd "${PROJECT_DIR}"/monoio | ||
|
||
# only enable legacy driver | ||
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils" | ||
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,legacy,macros,utils" --release | ||
|
||
if [ "${TARGET}" = "x86_64-unknown-linux-gnu" ] || [ "${TARGET}" = "i686-unknown-linux-gnu" ]; then | ||
|
||
# only enabled uring driver | ||
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,iouring,macros,utils" | ||
"${CARGO}" test --target "${TARGET}" --no-default-features --features "async-cancel,bytes,iouring,macros,utils" --release | ||
|
||
# enable uring+legacy driver | ||
"${CARGO}" test --target "${TARGET}" | ||
"${CARGO}" test --target "${TARGET}" --release | ||
|
||
if [ "${CHANNEL}" == "nightly" ]; then | ||
"${CARGO}" test --target "${TARGET}" --all-features | ||
"${CARGO}" test --target "${TARGET}" --all-features --release | ||
fi | ||
|
||
fi | ||
|
||
# test monoio-compat mod | ||
cd "${PROJECT_DIR}"/monoio-compat | ||
|
||
"${CARGO}" test --target "${TARGET}" | ||
"${CARGO}" test --target "${TARGET}" --release | ||
|
||
"${CARGO}" test --target "${TARGET}" --no-default-features --features hyper | ||
"${CARGO}" test --target "${TARGET}" --no-default-features --features hyper --release | ||
|
||
if [ "${CHANNEL}" == "nightly" ]; then | ||
"${CARGO}" test --target "${TARGET}" --all-features | ||
"${CARGO}" test --target "${TARGET}" --all-features --release | ||
fi | ||
|
||
# todo maybe we should test examples here ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.