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
19c8a946
Commit
19c8a946
authored
3 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
ci: add jobs {build,tests}_release
parent
59dde842
No related branches found
No related tags found
1 merge request
!16
ci: deploy a docker debug image a each master commit
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-5
31 additions, 5 deletions
.gitlab-ci.yml
with
31 additions
and
5 deletions
.gitlab-ci.yml
+
31
−
5
View file @
19c8a946
...
@@ -36,11 +36,9 @@ fmt_and_clippy:
...
@@ -36,11 +36,9 @@ fmt_and_clippy:
build_debug
:
build_debug
:
extends
:
.env
extends
:
.env
rules
:
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /^wip*$/
when
:
manual
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
when
:
never
when
:
never
-
if
:
'
$CI_
MERGE_REQUEST_ID
||$CI_COMMIT_BRANCH
==
"master
"
||
$CI_COMMIT_BRANCH
=
~
/^release/
'
-
if
:
'
$CI_
PIPELINE_SOURCE
==
"merge_request_event
"
||
$CI_COMMIT_BRANCH
=
=
"master"
'
-
when
:
manual
-
when
:
manual
stage
:
build
stage
:
build
script
:
script
:
...
@@ -51,14 +49,28 @@ build_debug:
...
@@ -51,14 +49,28 @@ build_debug:
paths
:
paths
:
-
build/
-
build/
tests
:
build_release
:
extends
:
.env
rules
:
-
if
:
'
$CI_COMMIT_TAG
||
$CI_COMMIT_BRANCH
=~
/^release/'
-
when
:
never
stage
:
build
script
:
-
cargo build --release
-
mkdir build
-
mv target/release/duniter build/duniter
artifacts
:
paths
:
-
build/
tests_debug
:
extends
:
.env
extends
:
.env
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"
||
$CI_COMMIT_BRANCH
=~
/^release/
'
-
if
:
'
$CI_MERGE_REQUEST_ID
||
$CI_COMMIT_BRANCH
==
"master"'
-
when
:
manual
-
when
:
manual
stage
:
tests
stage
:
tests
variables
:
variables
:
...
@@ -69,6 +81,20 @@ tests:
...
@@ -69,6 +81,20 @@ tests:
dependencies
:
dependencies
:
-
build_debug
-
build_debug
tests_release
:
extends
:
.env
rules
:
-
if
:
'
$CI_COMMIT_TAG
||
$CI_COMMIT_BRANCH
=~
/^release/'
-
when
:
never
stage
:
tests
variables
:
DUNITER_BINARY_PATH
:
"
../build/duniter"
DUNITER_INTEGRATION_TESTS_SPAWN_NODE_DURATION
:
"
10"
script
:
-
cargo test
dependencies
:
-
build_release
.docker-build-app-image
:
.docker-build-app-image
:
stage
:
deploy
stage
:
deploy
image
:
docker:18.06
image
:
docker:18.06
...
...
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