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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
07ca250f
Commit
07ca250f
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-7
7 additions, 7 deletions
.gitlab-ci.yml
docker/Dockerfile
+1
-1
1 addition, 1 deletion
docker/Dockerfile
with
8 additions
and
8 deletions
.gitlab-ci.yml
+
7
−
7
View file @
07ca250f
...
@@ -127,20 +127,20 @@ build_release_tag:
...
@@ -127,20 +127,20 @@ build_release_tag:
IMAGE_TAG
:
"
$CI_COMMIT_TAG"
IMAGE_TAG
:
"
$CI_COMMIT_TAG"
PODMAN_BUILD_OPTIONS
:
"
--platform
linux/amd64"
PODMAN_BUILD_OPTIONS
:
"
--platform
linux/amd64"
test
_debug
:
test
s
:
stage
:
tests
stage
:
tests
extends
:
.docker_build
rules
:
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /^wip*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^wip*$/
when
:
manual
when
:
manual
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
when
:
never
when
:
never
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$CI_COMMIT_BRANCH
==
"master"'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$CI_COMMIT_BRANCH
==
"master"'
-
when
:
manual
when
:
manual
variables
:
script
:
IMAGE_NAME
:
"
duniter/duniter-v2s-test"
# cargo build is required for cucumber tests anyway
IMAGE_TAG
:
"
debug-sha-$CI_COMMIT_SHORT_SHA"
-
cargo build
PODMAN_BUILD_OPTIONS
:
"
--target
build
--build-arg
debug=1
--build-arg
cucumber=1"
-
cargo tu
-
cargo cucumber
test_release
:
test_release
:
stage
:
tests
stage
:
tests
...
...
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
1
−
1
View file @
07ca250f
...
@@ -49,7 +49,7 @@ RUN set -x && \
...
@@ -49,7 +49,7 @@ RUN set -x && \
.
/root/dynenv
&&
\
.
/root/dynenv
&&
\
cargo build
--locked
$CARGO_OPTIONS
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
cargo build
--locked
$CARGO_OPTIONS
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
mkdir
-p
build
&&
\
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
# Run tests if requested, expted when cross-building
ARG
cucumber=0
ARG
cucumber=0
...
...
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