Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fca586d
grandpa: set justification period to 512 blocks (#445)
andresilva Sep 24, 2019
e922e4f
lock (#446)
gui1117 Sep 24, 2019
b9d2b35
update kusama.json to CC2
rphmeier Sep 24, 2019
5020fa4
update kusama.json
rphmeier Sep 26, 2019
d3c1f45
polkadot v0.6.1 (#461)
andresilva Oct 5, 2019
9c72bfd
polkadot v0.6.2 (#464)
andresilva Oct 7, 2019
c0399d4
ci: backport gitlab-ci.yml from master branch (#481)
gabreal Oct 17, 2019
72969c3
ci: backport #488 - fix publishing of ci builds (#489)
gabreal Oct 22, 2019
1f576dd
Backports to v0.6 (#493)
andresilva Oct 23, 2019
a467bb2
service: don't use the grandpa observer (#494)
andresilva Oct 25, 2019
2c8a404
v0.6: merge master branch (#497)
andresilva Oct 25, 2019
1d89023
Final tweaks for Kusama PrePos. (#499)
gavofyork Oct 25, 2019
0dd165b
Enable nicknaming for accounts (#500)
gavofyork Oct 27, 2019
c35a30d
Bump version
gavofyork Oct 27, 2019
5e94cda
Merge branch 'v0.6' of github.com:paritytech/polkadot into v0.6
gavofyork Oct 27, 2019
9bf2655
Update substrate to bring in forced nicks (#502)
gavofyork Oct 27, 2019
3fa5755
Fix locking, from an updated Substrate (#506)
gavofyork Oct 28, 2019
a15c029
Bump version
gavofyork Oct 28, 2019
775a6d5
Integrate fee RPC (#508) (#511)
gavofyork Oct 28, 2019
39397ab
Backport of Substrate update (#515)
gavofyork Oct 29, 2019
cd2a578
Backports from master (#525)
gavofyork Oct 31, 2019
ccd1c6e
Backports (#528)
gavofyork Nov 2, 2019
1e6c88b
Bump Substrate and versions (#531)
gavofyork Nov 3, 2019
7c334e2
Enable governance (#536)
gavofyork Nov 4, 2019
d102bc5
Bump substrate, versions. (#538)
gavofyork Nov 5, 2019
c137033
Revert substrate (#540)
gavofyork Nov 5, 2019
fffa22d
Version bump
gavofyork Nov 5, 2019
b26a1d7
Bump Substrate, versions. (#542)
gavofyork Nov 6, 2019
a5361b1
Bump Substrate (#544)
gavofyork Nov 7, 2019
a2208bb
Enable Wasmtime building (#545)
gavofyork Nov 7, 2019
3489548
Bump Substrate (#547)
gavofyork Nov 7, 2019
b8baab4
Enable grandpa migration. (#549)
gavofyork Nov 7, 2019
2cd9de1
add comments for WonRenewal event (#533) (#550)
xlc Nov 8, 2019
0b08f26
Bump versions & Substrate (#554)
gavofyork Nov 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 36 additions & 21 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ variables:
name: parity-build

.docker-env: &docker-env
retry:
max: 2
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker

Expand Down Expand Up @@ -92,6 +98,7 @@ test-linux-stable: &test
test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && (
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
sed -i -r 's:github.com/paritytech/substrate\?branch=polkadot-(master|testing):gitlab.parity.io/parity/substrate.git?branch=kusama-nightly-staging:' Cargo.lock
time cargo test --all --release --verbose) || \
time cargo test --all --release --verbose --locked
- sccache -s
Expand All @@ -108,20 +115,29 @@ build-linux-release: &build
script:
- |
test "${CI_COMMIT_REF_NAME}" = "kusama-nightly-staging" && (
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging";
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \; )
echo "kusama-nightly-staging: change Cargo.toml to build against substrate:kusama-nightly-staging"
find . -name Cargo.toml -exec sed -i -r -e ':github.com/paritytech/substrate": { s:branch = "polkadot-(master|testing)":branch = "kusama-nightly-staging":; s:github.com/paritytech/substrate:gitlab.parity.io/parity/substrate.git:}' '{}' \;
sed -i -r 's:github.com/paritytech/substrate\?branch=polkadot-(master|testing):gitlab.parity.io/parity/substrate.git?branch=kusama-nightly-staging:' Cargo.lock )
- time cargo build --release --verbose
- mkdir -p ./artifacts
- mv ./target/release/polkadot ./artifacts/.
- echo -n "Polkadot version = "
- sha256sum ./artifacts/polkadot | tee ./artifacts/polkadot.sha256
- if [ "${CI_COMMIT_TAG}" ]; then
echo "${CI_COMMIT_TAG}" | tee ./artifacts/VERSION;
VERSION="${CI_COMMIT_TAG}";
else
./artifacts/polkadot --version |
sed -n -r 's/^polkadot ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p' |
tee ./artifacts/VERSION;
VERSION="$(./artifacts/polkadot --version |
sed -n -r 's/^polkadot ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p')";
VERSION="${VERSION}-$(cut -c 1-8 ./artifacts/polkadot.sha256)";
fi
- sha256sum ./artifacts/polkadot | tee ./artifacts/polkadot.sha256
- LATEST_BRANCH="$(ls -1 .git/refs/remotes/origin/ | sed -r -n 's:v([0-9]+)\.([0-9]+):v\1.\2:p' | sort -V | tail -n1)"
- if expr match x${CI_COMMIT_TAG} x${LATEST_BRANCH}; then
EXTRATAG="latest";
else
EXTRATAG="latest-${CI_COMMIT_REF_NAME}";
fi
- echo "Polkadot version = ${VERSION} (EXTRATAG ${EXTRATAG})"
- echo -n ${VERSION} > ./artifacts/VERSION
- echo -n ${EXTRATAG} > ./artifacts/EXTRATAG
- cp -r scripts/docker/* ./artifacts
- sccache -s

Expand All @@ -135,6 +151,13 @@ build-linux-release: &build
cache: {}
<<: *build-refs
<<: *kubernetes-env
before_script:
- test -s ./artifacts/VERSION || exit 1
- test -s ./artifacts/EXTRATAG || exit 1
- VERSION="$(cat ./artifacts/VERSION)"
- EXTRATAG="$(cat ./artifacts/EXTRATAG)"
- echo "Polkadot version = ${VERSION} (EXTRATAG ${EXTRATAG})"




Expand All @@ -143,24 +166,18 @@ publish-docker-release:
image: docker:stable
services:
- docker:dind
# collect VERSION artifact here to pass it on to kubernetes
<<: *collect-artifacts
variables:
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay2
GIT_STRATEGY: none
# DOCKERFILE: scripts/docker/Dockerfile
CONTAINER_IMAGE: parity/polkadot
before_script:
script:
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity"
|| ( echo "no docker credentials provided"; exit 1 )
- docker login -u "$Docker_Hub_User_Parity" -p "$Docker_Hub_Pass_Parity"
- docker info
script:
- VERSION="$(cat ./artifacts/VERSION)"
- EXTRATAG="${CI_COMMIT_TAG:-latest}"
- echo "Polkadot version = ${VERSION}"
- test -z "${VERSION}" && exit 1
- cd ./artifacts
- docker build
--build-arg VCS_REF="${CI_COMMIT_SHA}"
Expand All @@ -185,19 +202,17 @@ publish-s3-release:
BUCKET: "releases.parity.io"
PREFIX: "polkadot/${ARCH}-${DOCKER_OS}"
script:
- VERSION="${CI_COMMIT_TAG:-$(cat ./artifacts/VERSION)}"
# LATEST_BRANCH will be empty if it's not a tag build i.e. CI_COMMIT_TAG is unset
- LATEST_BRANCH="$(echo $CI_COMMIT_TAG | sed -n -r 's/^(v[0-9]+\.[0-9]+)\.[0-9]+$/\1/p')"
- echo "uploading objects to ${BUCKET}/${PREFIX}/${VERSION}"
- aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/${VERSION}/
- echo "update objects in latest path"
- echo "update objects at ${BUCKET}/${PREFIX}/${EXTRATAG}/${name}"
- for file in ./artifacts/*; do
name="$(basename ${file})";
aws s3api copy-object
--copy-source ${BUCKET}/${PREFIX}/${VERSION}/${name}
--bucket ${BUCKET} --key ${PREFIX}/latest${LATEST_BRANCH}/${name};
--bucket ${BUCKET} --key ${PREFIX}/${EXTRATAG}/${name};
done
after_script:
- aws s3 ls s3://${BUCKET}/${PREFIX}/latest${LATEST_BRANCH}/
- aws s3 ls s3://${BUCKET}/${PREFIX}/${EXTRATAG}/
--recursive --human-readable --summarize


Expand Down
Loading