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
1f73847d
Commit
1f73847d
authored
5 years ago
by
Denis_P
Committed by
Bastian Köcher
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
WIP: ci uses new docker image (#236)
* ci uses new docker image * image renamed to parity/rust-builder:latest * cleanup
parent
1437c8e2
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
polkadot/.gitlab-ci.yml
+13
-22
13 additions, 22 deletions
polkadot/.gitlab-ci.yml
polkadot/scripts/init.sh
+4
-2
4 additions, 2 deletions
polkadot/scripts/init.sh
with
17 additions
and
24 deletions
polkadot/.gitlab-ci.yml
+
13
−
22
View file @
1f73847d
...
...
@@ -13,19 +13,19 @@ stages:
-
publish
-
deploy
image
:
parity/rust
:nightly
image
:
parity/rust
-builder:latest
variables
:
GIT_STRATEGY
:
fetch
CARGO_HOME
:
"
/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR
:
"
/ci-cache/${CI_PROJECT_NAME}/sccache"
SCCACHE_CACHE_SIZE
:
50G
CI_SERVER_NAME
:
"
GitLab
CI"
CARGO_HOME
:
"
${CI_PROJECT_DIR}/.cargo"
# have OS based build containers in the future
DOCKER_OS
:
"
ubuntu:xenial"
DOCKER_OS
:
"
debian:stretch"
ARCH
:
"
x86_64"
cache
:
{}
.collect-artifacts
:
&collect-artifacts
artifacts
:
name
:
"
${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
...
...
@@ -62,13 +62,8 @@ check-merge-conflict:
test-linux-stable
:
&test
test-linux-stable
:
&test
stage
:
test
cache
:
key
:
"
${CI_JOB_NAME}-test"
paths
:
-
${CARGO_HOME}
-
./target
variables
:
RUST_TOOLCHAIN
:
stable
# Enable debug assertions since we are running optimized builds for testing
...
...
@@ -87,12 +82,11 @@ test-linux-stable: &test
variables
:
-
$DEPLOY_TAG
before_script
:
-
test -d ${CARGO_HOME} -a -d ./target &&
echo "build cache size:" &&
du -h --max-depth=2 ${CARGO_HOME} ./target
-
sccache -s
-
./scripts/build.sh
script
:
-
time cargo test --all --release --verbose --locked
-
sccache -s
...
...
@@ -107,11 +101,6 @@ test-linux-stable: &test
build-linux-release
:
&build
stage
:
build
cache
:
key
:
"
${CI_JOB_NAME}-build"
paths
:
-
${CARGO_HOME}
-
./target
<<
:
*collect-artifacts
<<
:
*build-only
except
:
...
...
@@ -120,7 +109,8 @@ build-linux-release: &build
tags
:
-
linux-docker
before_script
:
-
./scripts/build.sh
-
sccache -s
-
./scripts/build.sh
script
:
-
time cargo build --release --verbose
-
mkdir -p ./artifacts
...
...
@@ -135,6 +125,7 @@ build-linux-release: &build
fi
-
sha256sum ./artifacts/polkadot | tee ./artifacts/polkadot.sha256
-
cp -r scripts/docker/* ./artifacts
-
sccache -s
...
...
@@ -143,7 +134,7 @@ build-linux-release: &build
stage
:
publish
dependencies
:
-
build-linux-release
cache
:
{}
cache
:
{}
<<
:
*build-only
<<
:
*kubernetes-build
...
...
This diff is collapsed.
Click to expand it.
polkadot/scripts/init.sh
+
4
−
2
View file @
1f73847d
...
...
@@ -4,8 +4,10 @@ set -e
echo
"*** Initializing WASM build environment"
rustup update nightly
rustup update stable
if
[
-z
$CI_PROJECT_NAME
]
;
then
rustup update nightly
rustup update stable
fi
rustup target add wasm32-unknown-unknown
--toolchain
nightly
...
...
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