chore: update test script (#140)

This commit is contained in:
Saif Eddin Gmati 2022-11-30 01:39:02 +01:00 committed by GitHub
parent 3df5a46eeb
commit 5d95a8985c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 8 deletions

View File

@ -39,4 +39,4 @@ jobs:
cargo clippy
- name: test
run: cargo test --all -- --skip third_party
run: ./meta/test --all -- --skip third_party

View File

@ -32,4 +32,4 @@ jobs:
uses: Swatinem/rust-cache@v2.0.0
- name: test third-party
run: cargo test third_party
run: ./meta/test third_party

View File

@ -4,7 +4,8 @@ use std::path::PathBuf;
fn main() {
println!("cargo:rerun-if-changed=tests");
if cfg!(not(test)) {
if env::var("BUILD_INTEGRATION_TESTS").unwrap_or_else(|_| "0".to_string()) == "0" {
return;
}

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
set -xe
cargo nextest run

8
meta/test Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env sh
set -xe
BUILD_INTEGRATION_TESTS=1
cargo build
cargo test "$@"