ostree/rust-bindings/.ci/generate-test-jobs.sh
2022-05-06 12:53:57 -04:00

29 lines
418 B
Bash
Executable File

#!/bin/sh
set -eu
get_features() {
cargo read-manifest \
| jq -jr '.features
| keys
| map(select(. != "dox"))
| map(. + " ")
| .[]'
}
cat <<EOF
include: /.ci/gitlab-ci-base.yml
EOF
features=$(get_features)
for feature in $features; do
cat <<EOF
test_feature_${feature}:
extends: .fedora-ostree-devel
script:
- cargo test --verbose --workspace --features ${feature}
EOF
done