Skip to content
Snippets Groups Projects
Commit 07ca250f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#132): run tests directly using cargo

parent 385f134d
No related branches found
No related tags found
No related merge requests found
Pipeline #34078 failed
......@@ -127,20 +127,20 @@ build_release_tag:
IMAGE_TAG: "$CI_COMMIT_TAG"
PODMAN_BUILD_OPTIONS: "--platform linux/amd64"
test_debug:
tests:
stage: tests
extends: .docker_build
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG
when: never
- if: '$CI_MERGE_REQUEST_ID || $CI_COMMIT_BRANCH == "master"'
- when: manual
variables:
IMAGE_NAME: "duniter/duniter-v2s-test"
IMAGE_TAG: "debug-sha-$CI_COMMIT_SHORT_SHA"
PODMAN_BUILD_OPTIONS: "--target build --build-arg debug=1 --build-arg cucumber=1"
when: manual
script:
# cargo build is required for cucumber tests anyway
- cargo build
- cargo tu
- cargo cucumber
test_release:
stage: tests
......
......@@ -49,7 +49,7 @@ RUN set -x && \
. /root/dynenv && \
cargo build --locked $CARGO_OPTIONS --target "$RUST_ARCH_TRIPLET" && \
mkdir -p build && \
cp target/$RUST_ARCH_TRIPLET/$TARGET_FOLDER/duniter build/
mv target/$RUST_ARCH_TRIPLET/$TARGET_FOLDER/duniter build/
# Run tests if requested, expted when cross-building
ARG cucumber=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment