Unverified Commit 6d8ef3f1 authored by Michael Müller's avatar Michael Müller Committed by GitHub

Test new project template in CI (#235)

* Test new project template in CI

* Add empty workspace before build

* Add `--all-features`
parent 3454c125
Pipeline #130731 failed with stages
in 4 minutes and 29 seconds
......@@ -81,6 +81,24 @@ test:
script:
- cargo test --verbose --workspace --all-features
test-new-project-template:
stage: test
<<: *docker-env
script:
- cargo run -- contract new new_project
# needed because otherwise:
# `error: current package believes it's in a workspace when it's not`
- echo "[workspace]" >> new_project/Cargo.toml
- cargo run --all-features -- contract build --manifest-path new_project/Cargo.toml
- cargo run --all-features -- contract check --manifest-path new_project/Cargo.toml
- cd new_project
- cargo check --verbose
- cargo test --verbose --all
- cargo fmt --verbose --all -- --check
#### stage: build (default features)
build:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment