Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parity-ethereum
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
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
Model registry
Operate
Environments
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
ddorgan
parity-ethereum
Commits
749f0d66
Commit
749f0d66
authored
6 years ago
by
ddorgan
Browse files
Options
Downloads
Patches
Plain Diff
Repackage
parent
4a0baf20
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+55
-0
55 additions, 0 deletions
.gitlab-ci.yml
with
55 additions
and
0 deletions
.gitlab-ci.yml
+
55
−
0
View file @
749f0d66
stages
:
-
build
-
package
-
publish
-
docs
image
:
parity/rust:gitlab-ci
...
...
@@ -11,9 +14,59 @@ variables:
BUILD_ARCH
:
amd64
CARGO_TARGET
:
x86_64-unknown-linux-gnu
cache
:
key
:
"
${CI_JOB_NAME}"
paths
:
-
${CI_PROJECT_DIR}/target/
-
${CI_PROJECT_DIR}/cargo/
.releaseable_branches
:
# list of git refs for building GitLab artifacts (think "pre-release binaries")
only
:
&releaseable_branches
-
master
-
stable
-
beta
-
tags
.publishable_branches
:
# list of git refs for publishing builds to the "production" locations
only
:
&publishable_branches
-
nightly
# Our nightly builds from schedule, on `master`
-
"
v2*"
# Our version tags
.collect_artifacts
:
&collect_artifacts
artifacts
:
name
:
"
${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when
:
on_success
expire_in
:
1 mos
paths
:
-
artifacts/
.determine_version
:
&determine_version
|
export VERSION=$(grep -m 1 "version =" Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
echo "Version" $VERSION
#### stage: build
build-linux-ubuntu-amd64
:
&build
stage
:
build
only
:
*releaseable_branches
variables
:
CARGO_TARGET
:
x86_64-unknown-linux-gnu
script
:
-
scripts/gitlab/build-unix.sh
<<
:
*collect_artifacts
tags
:
-
rust-stable
allow_failure
:
true
#### stage: package
package-linux-snap-amd64
:
&package_snap
stage
:
package
only
:
*releaseable_branches
cache
:
{}
before_script
:
-
*determine_version
variables
:
CARGO_TARGET
:
x86_64-unknown-linux-gnu
dependencies
:
...
...
@@ -22,3 +75,5 @@ package-linux-snap-amd64: &package_snap
-
scripts/gitlab/package-snap.sh
tags
:
-
rust-stable
<<
:
*collect_artifacts
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