Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream merges #2

Merged
merged 27 commits into from
Mar 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1bd4564
CI publish to aws (#10446)
General-Beck Mar 4, 2019
7014642
Implement parity_versionInfo & parity_setChain on LC; fix parity_setC…
axelchalon Mar 4, 2019
3e1d731
CI aws git checkout (#10451)
General-Beck Mar 5, 2019
91933d8
perf(ethcore): `micro-opt` (#10405)
niklasad1 Mar 6, 2019
742a600
Revert "CI aws git checkout (#10451)" (#10456)
General-Beck Mar 7, 2019
ab27848
docs: update changelogs for 2.2.{8,9,10,11}, 2.3.{1,2,3,4,5}, and 2.4…
5chdn Mar 7, 2019
23d977e
simplify ethcore machine by removing redundant traits (#10454)
debris Mar 11, 2019
4320c9b
docs(spec): remove link to obsolete issue (#10464)
niklasad1 Mar 11, 2019
82a148a
Tests parallelized (#10452)
TriplEight Mar 11, 2019
595dac6
Ensure static validator set changes are recognized (#10467)
HCastano Mar 12, 2019
a16bad4
simplify parity machine (#10469)
debris Mar 13, 2019
c9db8ea
further simplify machine (#10472)
debris Mar 14, 2019
f875175
remove unused Engine::is_proposal (#10475)
debris Mar 14, 2019
d83143d
remove unused Engine::maximum_uncle_age (#10476)
debris Mar 14, 2019
a574df3
simplify block module and usage (#10479)
debris Mar 15, 2019
fb46165
OpenBlock::new take IntoIterator instead of mutable ref to Iterator (…
debris Mar 15, 2019
a8ee3c9
Сaching through docker volume (#10477)
TriplEight Mar 19, 2019
effead9
fix win&mac build (#10486)
General-Beck Mar 19, 2019
78a5346
fix(rpc): lint `unused_extern_crates` + fix warns (#10489)
niklasad1 Mar 19, 2019
037fd1b
fix(extract `timestamp_checked_add` as lib) (#10383)
niklasad1 Mar 19, 2019
9519493
fix(time-utils): add missing license (#10497)
niklasad1 Mar 20, 2019
b700ff3
whisper/cli: add p2p port and ip parameters (#10057)
gballet Mar 21, 2019
375a8da
Add additional request tests (#10503)
HCastano Mar 21, 2019
f2c34f7
fix Sha3/keccak256 hash calculation for binaries (#10509)
General-Beck Mar 22, 2019
17042e9
fix(rpc): fix a bunch of clippy lints (#10493)
niklasad1 Mar 22, 2019
023e511
docs: add changelogs for 2.3.{6,7,8} and 2.4.{1,2,3} (#10494)
soc1c Mar 22, 2019
6cf3ba7
Add a more realistic Batch test (#10511)
HCastano Mar 25, 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
124 changes: 83 additions & 41 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@ variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
CI_SERVER_NAME: "GitLab CI"
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
CARGO_TARGET: x86_64-unknown-linux-gnu

.no_git: &no_git
.no_git: &no_git # disable git strategy
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none


.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
only: &releaseable_branches
- stable
- beta
- tags
- schedules


.collect_artifacts: &collect_artifacts
artifacts:
name: "${CI_JOB_NAME}_${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}"
Expand All @@ -34,34 +31,89 @@ variables:
paths:
- artifacts/

test-linux:
stage: test
.docker-cache-status: &docker-cache-status
variables:
RUN_TESTS: all
script:
- scripts/gitlab/test-all.sh
CARGO_HOME: "/cargo/${CI_JOB_NAME}"
before_script:
- SCCACHE_ERROR_LOG=/builds/parity/parity-ethereum/sccache_error.log RUST_LOG=sccache::server=debug sccache --start-server
- sccache -s
after_script:
- echo "All crate-types:"
- grep 'parse_arguments.*--crate-type' sccache_error.log | sed -re 's/.*"--crate-type", "([^"]+)".*/\1/' | sort | uniq -c
- echo "Non-cacheable reasons:"
- grep CannotCache sccache_error.log | sed -re 's/.*CannotCache\((.+)\).*/\1/' | sort | uniq -c
tags:
- linux-docker

test-audit:

cargo-check 0 3:
stage: test
<<: *docker-cache-status
script:
- time cargo check --target $CARGO_TARGET --locked --no-default-features
- sccache -s

cargo-check 1 3:
stage: test
<<: *docker-cache-status
script:
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --no-default-features
- sccache -s

cargo-check 2 3:
stage: test
<<: *docker-cache-status
script:
- time cargo check --target $CARGO_TARGET --locked --manifest-path util/io/Cargo.toml --features "mio"
- sccache -s

cargo-audit:
stage: test
<<: *docker-cache-status
script:
- set -e
- set -u
- cargo audit
- sccache -s

validate-chainspecs:
stage: test
<<: *docker-cache-status
script:
- ./scripts/gitlab/validate-chainspecs.sh
- sccache -s

test-cpp:
stage: build
<<: *docker-cache-status
script:
- ./scripts/gitlab/test-cpp.sh
- sccache -s

test-linux:
stage: build
<<: *docker-cache-status
script:
- ./scripts/gitlab/test-linux.sh
- sccache -s

build-android:
stage: build
image: parity/rust-android:gitlab-ci
variables:
CARGO_TARGET: armv7-linux-androideabi
script:
- scripts/gitlab/build-linux.sh
tags:
- linux-docker
<<: *collect_artifacts

build-linux: &build-linux
stage: build
only: *releaseable_branches
<<: *docker-cache-status
script:
- scripts/gitlab/build-unix.sh
- scripts/gitlab/build-linux.sh
- sccache -s
<<: *collect_artifacts
tags:
- linux-docker

build-linux-i386:
<<: *build-linux
Expand All @@ -86,10 +138,11 @@ build-darwin:
only: *releaseable_branches
variables:
CARGO_TARGET: x86_64-apple-darwin
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
CC: gcc
CXX: g++
script:
- scripts/gitlab/build-unix.sh
- scripts/gitlab/build-linux.sh
tags:
- rust-osx
<<: *collect_artifacts
Expand All @@ -99,16 +152,17 @@ build-windows:
only: *releaseable_branches
variables:
CARGO_TARGET: x86_64-pc-windows-msvc
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
script:
- sh scripts/gitlab/build-windows.sh
tags:
- rust-windows
- rust-windows
<<: *collect_artifacts

publish-docker:
stage: publish
only: *releaseable_branches
cache: {}
cache: {}
dependencies:
- build-linux
tags:
Expand All @@ -122,7 +176,7 @@ publish-snap: &publish-snap
image: snapcore/snapcraft
variables:
BUILD_ARCH: amd64
cache: {}
cache: {}
dependencies:
- build-linux
tags:
Expand Down Expand Up @@ -178,17 +232,16 @@ publish-awss3-release:
script:
- echo "__________Push binaries to AWS S3____________"
- case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
(beta|stable|nightly)
export BUCKET=releases.parity.io/ethereum;
;;
(*)
export BUCKET=builds-parity;
;;
esac
(beta|stable|nightly)
export BUCKET=releases.parity.io/ethereum;
;;
(*)
export BUCKET=builds-parity;
;;
esac
- aws s3 sync ./artifacts s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
after_script:
- aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/
--recursive --human-readable --summarize
- echo "__________Read from S3____________"
- aws s3 ls s3://${BUCKET}/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}} --recursive --human-readable --summarize
tags:
- linux-docker

Expand All @@ -198,20 +251,9 @@ publish-docs:
- tags
except:
- nightly
cache: {}
cache: {}
script:
- scripts/gitlab/publish-docs.sh
tags:
- linux-docker

build-android:
stage: optional
image: parity/rust-android:gitlab-ci
variables:
CARGO_TARGET: armv7-linux-androideabi
script:
- scripts/gitlab/build-unix.sh
tags:
- linux-docker
allow_failure: true
<<: *collect_artifacts
Loading