Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
typescript
duniter
Commits
b44f8671
Commit
b44f8671
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[ci] rename nvm_env -> env & rework rust jobs
parent
c9b81ebc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-31
17 additions, 31 deletions
.gitlab-ci.yml
with
17 additions
and
31 deletions
.gitlab-ci.yml
+
17
−
31
View file @
b44f8671
...
...
@@ -24,7 +24,7 @@ workflow:
-
server.ts
-
yarn.lock
.
nvm_
env
:
&
nvm_
env
.env
:
&env
image
:
registry.duniter.org/docker/duniter-ci:v0.0.4
tags
:
-
redshift
...
...
@@ -35,9 +35,12 @@ workflow:
-
nvm use 10.19.0
-
curl https://sh.rustup.rs -sSf | sh -s -- -y
-
export PATH="$HOME/.cargo/bin:$PATH"
-
export RUSTFLAGS="-D warnings"
-
rustup show && rustc --version && cargo --version
.cached_nvm
:
&cached_nvm
<<
:
*
nvm_
env
<<
:
*env
cache
:
untracked
:
true
paths
:
...
...
@@ -49,11 +52,11 @@ workflow:
-
redshift
before_script
:
-
export PATH="$HOME/.cargo/bin:$PATH"
-
rustup show
-
rustc --version && cargo --version
-
rustup show
&& rustc --version && cargo --version
#pages:
# <<: *
nvm_
env
# <<: *env
# stage: pages
# cache: {}
# script:
...
...
@@ -76,27 +79,8 @@ workflow:
# - loki
# - dev
tests:rs
:
extends
:
.nvm_env
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
-
when
:
on_success
stage
:
tests
script
:
-
cargo fmt -- --version
-
cargo fmt -- --check
-
RUSTFLAGS="-D warnings" cargo build
-
cargo test --all
# Coverage (doesn't make sense yet)
#- cargo test --doc
#- cargo tarpaulin --ignore-tests -iv --out Xml
#- bash <(curl -s https://codecov.io/bash)
tests:ts
:
<<
:
*nvm_env
tests
:
<<
:
*env
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
...
...
@@ -117,15 +101,17 @@ tests:ts:
-
coverage.tar.gz
expire_in
:
4h
clippy
:
extends
:
.
nvm_
env
fmt_and_
clippy
:
extends
:
.env
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_MERGE_REQUEST_ID
-
when
:
manual
-
when
:
on_success
stage
:
quality
script
:
-
cargo fmt -- --version
-
cargo fmt -- --check
-
cargo clippy -- -V
-
cargo clippy --all --tests -- -D warnings --verbose
...
...
@@ -145,7 +131,7 @@ audit_dependencies:
-
when
:
manual
sync_g1
:
<<
:
*
nvm_
env
<<
:
*env
<<
:
*integration_rules
stage
:
integration
script
:
...
...
@@ -153,7 +139,7 @@ sync_g1:
-
bash .gitlab/test/check_g1_sync.sh
sync_gtest
:
<<
:
*
nvm_
env
<<
:
*env
<<
:
*integration_rules
stage
:
integration
script
:
...
...
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