Skip to content

Commit

Permalink
feature variance in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SkymanOne committed Mar 15, 2023
1 parent 2feede3 commit 07ba757
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ examples-test:
- for example in integration-tests/*/; do
if [ "$example" = "integration-tests/lang-err-integration-tests/" ]; then continue; fi;
if [ "$example" = "integration-tests/conditional-compilation/" ]; then
cargo test --verbose --manifest-path ${example}/Cargo.toml --features "foo";
cargo test --verbose --manifest-path ${example}/Cargo.toml --features "bar";
cargo test --verbose --manifest-path ${example}/Cargo.toml --features "foo, bar";
fi;
if grep -q "e2e-tests = \[\]" "${example}/Cargo.toml"; then
Expand Down Expand Up @@ -405,6 +407,12 @@ examples-contract-build:
if [ "$example" = "integration-tests/lang-err-integration-tests/" ]; then continue; fi;
if [ "$example" = "integration-tests/conditional-compilation/" ]; then
pushd $example &&
cargo +stable contract build --features "foo" &&
popd;
pushd $example &&
cargo +stable contract build --features "bar" &&
popd;
pushd $example &&
cargo +stable contract build --features "foo, bar" &&
popd;
fi;
Expand Down

0 comments on commit 07ba757

Please sign in to comment.