Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
3b075510
Commit
3b075510
authored
5 years ago
by
Denis_P
Browse files
Options
Downloads
Patches
Plain Diff
a simple CI for the start
parent
1f25902e
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cumulus/.gitlab-ci.yml
+80
-0
80 additions, 0 deletions
cumulus/.gitlab-ci.yml
with
80 additions
and
0 deletions
cumulus/.gitlab-ci.yml
0 → 100644
+
80
−
0
View file @
3b075510
# .gitlab-ci.yml
#
# cumulus
#
# pipelines can be triggered manually in the web
stages
:
-
test
-
build
variables
:
GIT_STRATEGY
:
fetch
CARGO_HOME
:
"
/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR
:
"
/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL
:
0
CI_SERVER_NAME
:
"
GitLab
CI"
.collect-artifacts
:
&collect-artifacts
artifacts
:
name
:
"
${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when
:
on_success
expire_in
:
7 days
paths
:
-
artifacts/
.docker-env
:
&docker-env
image
:
parity/rust-builder:latest
before_script
:
-
rustup show
-
cargo --version
-
sccache -s
only
:
-
master
-
/^v[0-9]+\.[0-9]+.*$/
# i.e. v1.0, v2.1rc1
-
schedules
-
web
-
/^[0-9]+$/
# PRs
tags
:
-
linux-docker
#### stage: test
test-linux-stable
:
stage
:
test
<<
:
*docker-env
variables
:
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
RUSTFLAGS
:
-Cdebug-assertions=y
script
:
-
time cargo test --all --release --frozen |
tee output.log
-
sccache -s
after_script
:
-
echo "___Collecting warnings for check_warnings job___"
-
awk '/^warning:/,/^$/ { print }' output.log > ${CI_COMMIT_SHORT_SHA}_warnings.log
artifacts
:
name
:
$CI_COMMIT_SHORT_SHA
expire_in
:
24 hrs
paths
:
-
${CI_COMMIT_SHORT_SHA}_warnings.log
#### stage: build
check_warnings
:
stage
:
build
<<
:
*docker-env
variables
:
GIT_STRATEGY
:
none
dependencies
:
-
test-linux-stable
script
:
-
if [ -s ${CI_COMMIT_SHORT_SHA}_warnings.log ]; then
cat ${CI_COMMIT_SHORT_SHA}_warnings.log;
exit 1;
else
echo "___No warnings___";
fi
allow_failure
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
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