Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
f77a5dc1
Commit
f77a5dc1
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix(
#125
): feat: cargo `ti`,`ta` and `cucumber-node`
parent
0486a7ba
No related branches found
No related tags found
No related merge requests found
Pipeline
#33611
failed
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cargo/config
+3
-2
3 additions, 2 deletions
.cargo/config
docker/Dockerfile
+2
-7
2 additions, 7 deletions
docker/Dockerfile
with
5 additions
and
9 deletions
.cargo/config
+
3
−
2
View file @
f77a5dc1
[alias]
[alias]
cucumber = "test -p duniter-end2end-tests --test cucumber_tests --"
sanity-gdev = "test -p duniter-live-tests --test sanity_gdev -- --nocapture"
sanity-gdev = "test -p duniter-live-tests --test sanity_gdev -- --nocapture"
tu = "test --workspace --exclude duniter-end2end-tests --exclude duniter-live-tests"
tu = "test --workspace --exclude duniter-end2end-tests --exclude duniter-live-tests"
ti = "test -p duniter-end2end-tests --test cucumber_tests --"
ta = "test --workspace --exclude duniter-live-tests"
tb = "test --features runtime-benchmarks -p"
tb = "test --features runtime-benchmarks -p"
rbp = "run --release --features runtime-benchmarks -- benchmark pallet --chain=dev --steps=50 --repeat=20 --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=. --pallet"
rbp = "run --release --features runtime-benchmarks -- benchmark pallet --chain=dev --steps=50 --repeat=20 --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=. --pallet"
xtask = "run --package xtask --"
xtask = "run --package xtask --"
cucumber-node = "test -- --chain=gdev_dev --execution=Native --sealing=manual --force-authoring --rpc-cors=all --tmp --ws-port 9944 --alice"
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
2
−
7
View file @
f77a5dc1
...
@@ -54,13 +54,8 @@ RUN set -x && \
...
@@ -54,13 +54,8 @@ RUN set -x && \
# Run tests if requested, expted when cross-building
# Run tests if requested, expted when cross-building
ARG
cucumber=0
ARG
cucumber=0
RUN if
[
"
$cucumber
"
!=
0
]
&&
[
"
$TARGETPLATFORM
"
=
"
$BUILDPLATFORM
"
]
;
then
\
RUN if
[
"
$cucumber
"
!=
0
]
&&
[
"
$TARGETPLATFORM
"
=
"
$BUILDPLATFORM
"
]
;
then
\
cargo
test
--workspace
--exclude
duniter-end2end-tests
--exclude
duniter-live-tests
&&
\
cargo tu
&&
\
cargo cucumber
-i
account_creation
*
&&
\
cargo cucumber
&&
\
cargo cucumber
-i
certification
*
&&
\
cargo cucumber
-i
identity_creation
*
&&
\
cargo cucumber
-i
monetary_mass
*
&&
\
cargo cucumber
-i
oneshot_account
*
&&
\
cargo cucumber
-i
transfer_all
*
&&
\
cd
target/debug/deps/
&&
\
cd
target/debug/deps/
&&
\
rm
cucumber_tests-
*
.d
&&
\
rm
cucumber_tests-
*
.d
&&
\
mv
cucumber_tests
*
../../../build/duniter-cucumber
;
\
mv
cucumber_tests
*
../../../build/duniter-cucumber
;
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment