Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: put tests into a separate script so they can be run externally #2956

Merged
merged 3 commits into from
Jun 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,7 @@ jobs:
if: matrix.target == ''

# Build and test all features except for lightbeam
- run: |
cargo test \
--features test-programs/test_programs \
--workspace \
--exclude '*lightbeam*' \
--exclude 'wasmtime-wasi-*' \
--exclude 'peepmatic*' \
--exclude wasi-crypto
- run: ./ci/run-tests.sh --locked
env:
RUST_BACKTRACE: 1

Expand Down Expand Up @@ -349,7 +342,7 @@ jobs:
- run: rustup target add wasm32-unknown-unknown

# Run the old x86 backend CI (we will eventually remove this).
- run: ./ci/run-old-x86-ci.sh
- run: ./ci/run-tests.sh --features old-x86-backend --locked
env:
RUST_BACKTRACE: 1

Expand Down
18 changes: 0 additions & 18 deletions ci/run-old-x86-ci.sh

This file was deleted.

10 changes: 10 additions & 0 deletions ci/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

cargo test \
--features "test-programs/test_programs" \
--workspace \
--exclude '*lightbeam*' \
--exclude 'wasmtime-wasi-*' \
--exclude 'peepmatic*' \
--exclude wasi-crypto \
$@