Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter-rs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
vindarel
duniter-rs
Commits
e8d2ad67
Commit
e8d2ad67
authored
6 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[ref] rework ci stages
parent
deeb962f
No related branches found
Tags
v0.0.1-a0.6
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-26
20 additions, 26 deletions
.gitlab-ci.yml
with
20 additions
and
26 deletions
.gitlab-ci.yml
+
20
−
26
View file @
e8d2ad67
...
...
@@ -4,15 +4,12 @@ stages:
-
clippy
-
package
-
prerelease
-
publish
before_script
:
-
export PATH="$HOME/.cargo/bin:$PATH"
-
release
-
publish_doc
variables
:
CARGO_HOME
:
$CI_PROJECT_DIR/cargo
.rust_stable_env
:
&rust_stable_env
tags
:
-
redshift-rs-stable
...
...
@@ -83,7 +80,20 @@ clippy:
-
cargo install --force clippy --verbose
script
:
-
cargo clippy --all -- -D warnings --verbose
allow_failure
:
true
allow_failure
:
true
publish:crate
:
<<
:
*rust_stable_env
stage
:
clippy
script
:
-
IFS='/' read -r first a <<< "$CI_COMMIT_TAG"
-
cd $first
-
cargo login $DUNITER_CRATES_TOKEN
-
cargo publish
only
:
-
tags
allow_failure
:
false
when
:
manual
package:test:linux-x64
:
<<
:
*rust_stable_env
...
...
@@ -116,8 +126,7 @@ package:prod:linux-x64:
-
work/bin/
expire_in
:
2 weeks
only
:
-
dev
-
tags
-
tags
.release_jobs
:
&release_jobs
image
:
tensorflow/tensorflow:latest-py3
...
...
@@ -126,7 +135,6 @@ package:prod:linux-x64:
script
:
-
python3 .gitlab/releaser
only
:
-
dev
-
tags
prerelease
:
...
...
@@ -136,32 +144,18 @@ prerelease:
RELEASE_BIN_DIR
:
work/bin/
SOURCE_EXT
:
'
["tar.gz",
"zip"]'
publish:
release
:
release
:
<<
:
*release_jobs
stage
:
publish
stage
:
release
variables
:
RELEASE_BIN_DIR
:
work/bin/
WIKI_RELEASE
:
Releases
allow_failure
:
false
when
:
manual
publish:crate
:
<<
:
*rust_stable_env
stage
:
publish
script
:
-
IFS='/' read -r first a <<< "$CI_COMMIT_TAG"
-
cd $first
-
cargo login $DUNITER_CRATES_TOKEN
-
cargo publish
only
:
-
publish-crate
-
tags
allow_failure
:
false
when
:
manual
pages
:
<<
:
*rust_stable_env
stage
:
publish
stage
:
publish
_doc
script
:
-
cargo doc
-
mv target/doc public
...
...
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