diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a84094df3..8a96a47502 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,12 +47,14 @@ commands: parameters: workspace_member: type: string + features: + type: string steps: - run: no_output_timeout: 30m command: | cd << parameters.workspace_member >> - cargo test -- --list --format terse | sed 's/: test//' > test_names.txt + cargo test --features=<< parameters.features >> -- --list --format terse | sed 's/: test//' > test_names.txt TEST_NAMES=$(circleci tests split test_names.txt) for i in $(echo $TEST_NAMES | sed "s/ / /g") do @@ -77,6 +79,7 @@ jobs: cache_key: snarkos-integration-cache - run_parallel: workspace_member: .integration + features: test - clear_environment: cache_key: snarkos-integration-cache @@ -91,6 +94,7 @@ jobs: cache_key: snarkos-environment-cache - run_parallel: workspace_member: environment + features: network - clear_environment: cache_key: snarkos-environment-cache @@ -105,6 +109,7 @@ jobs: cache_key: snarkos-metrics-cache - run_parallel: workspace_member: metrics + features: test - clear_environment: cache_key: snarkos-metrics-cache @@ -119,6 +124,7 @@ jobs: cache_key: snarkos-network-cache - run_parallel: workspace_member: network + features: test - clear_environment: cache_key: snarkos-network-cache @@ -133,6 +139,7 @@ jobs: cache_key: snarkos-rpc-cache - run_parallel: workspace_member: rpc + features: "" - clear_environment: cache_key: snarkos-rpc-cache @@ -147,6 +154,7 @@ jobs: cache_key: snarkos-stable-cache - run_parallel: workspace_member: . + features: test - clear_environment: cache_key: snarkos-stable-cache @@ -161,6 +169,7 @@ jobs: cache_key: snarkos-storage-cache - run_parallel: workspace_member: storage + features: test - clear_environment: cache_key: snarkos-storage-cache