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
00b5c0c0
Commit
00b5c0c0
authored
4 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[ci] add jobs for rust code
parent
b35d40c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+51
-3
51 additions, 3 deletions
.gitlab-ci.yml
deny.toml
+50
-0
50 additions, 0 deletions
deny.toml
with
101 additions
and
3 deletions
.gitlab-ci.yml
+
51
−
3
View file @
00b5c0c0
stages
:
-
test
-
tests
-
quality
-
package
-
integration
-
prerelease
...
...
@@ -41,6 +42,14 @@ workflow:
paths
:
-
node_modules/
.rust_env
:
image
:
registry.duniter.org/docker/rust/rust-x64-stable-ci:latest
tags
:
-
redshift
before_script
:
-
export PATH="$HOME/.cargo/bin:$PATH"
-
rustup show
-
rustc --version && cargo --version
#pages:
# <<: *nvm_env
...
...
@@ -66,7 +75,26 @@ workflow:
# - loki
# - dev
test
:
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
rules
:
-
if
:
$CI_COMMIT_TAG
...
...
@@ -74,7 +102,7 @@ test:
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
-
when
:
on_success
stage
:
test
stage
:
test
s
script
:
-
yarn
-
yarn test
...
...
@@ -88,6 +116,26 @@ test:
-
coverage.tar.gz
expire_in
:
4h
clippy
:
extends
:
.nvm_env
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_MERGE_REQUEST_ID
-
when
:
manual
stage
:
quality
script
:
-
cargo clippy -- -V
-
cargo clippy --all --tests -- -D warnings --verbose
audit_dependencies
:
extends
:
.rust_env
before_script
:
-
cargo deny -V
stage
:
quality
script
:
-
cargo deny check
.integration_rules
:
&integration_rules
rules
:
-
if
:
$CI_COMMIT_TAG
...
...
This diff is collapsed.
Click to expand it.
deny.toml
0 → 100644
+
50
−
0
View file @
00b5c0c0
[bans]
multiple-versions
=
"warn"
deny
=
[
# color-backtrace is nice but brings in too many dependencies and that are often outdated, so not worth it for us.
{
name
=
"color-backtrace"
}
,
# deprecated
{
name
=
"quickersort"
}
,
# term is not fully maintained, and termcolor is replacing it
{
name
=
"term"
}
,
]
skip-tree
=
[
{
name
=
"winapi"
,
version
=
"<
=
0.3
" },
]
[licenses]
unlicensed
=
"deny"
# We want really high confidence when inferring licenses from text
confidence-threshold
=
0.92
allow
=
[
"AGPL-3.0"
,
"Apache-2.0"
,
"BSD-2-Clause"
,
"BSD-3-Clause"
,
"CC0-1.0"
,
"ISC"
,
"MIT"
,
"MPL-2.0"
,
"OpenSSL"
,
"Zlib"
]
[[licenses.clarify]]
name
=
"ring"
# SPDX considers OpenSSL to encompass both the OpenSSL and SSLeay licenses
# https://spdx.org/licenses/OpenSSL.html
# ISC - Both BoringSSL and ring use this for their new files
# MIT - "Files in third_party/ have their own licenses, as described therein. The MIT
# license, for third_party/fiat, which, unlike other third_party directories, is
# compiled into non-test libraries, is included below."
# OpenSSL - Obviously
expression
=
"ISC AND MIT AND OpenSSL"
license-files
=
[
{
path
=
"LICENSE"
,
hash
=
0xbd0eed23
}
,
]
[sources]
unknown-registry
=
"deny"
unknown-git
=
"deny"
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