2016-07-28 17:34:32 +02:00
|
|
|
stages:
|
2016-11-04 06:45:26 +01:00
|
|
|
- test
|
2017-03-08 23:34:00 +01:00
|
|
|
- build
|
2018-08-26 00:44:08 +02:00
|
|
|
- publish
|
2018-10-02 01:03:58 +02:00
|
|
|
- optional
|
2018-08-26 00:44:08 +02:00
|
|
|
|
|
|
|
image: parity/rust:gitlab-ci
|
|
|
|
|
2016-07-28 17:34:32 +02:00
|
|
|
variables:
|
2018-08-26 00:44:08 +02:00
|
|
|
CI_SERVER_NAME: "GitLab CI"
|
2018-10-02 01:03:58 +02:00
|
|
|
CARGO_HOME: "${CI_PROJECT_DIR}/.cargo"
|
2018-08-26 00:44:08 +02:00
|
|
|
CARGO_TARGET: x86_64-unknown-linux-gnu
|
|
|
|
|
|
|
|
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
|
|
|
|
only: &releaseable_branches
|
2018-10-10 14:51:36 +02:00
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- tags
|
|
|
|
- schedules
|
2018-10-09 15:32:07 +02:00
|
|
|
|
2018-08-26 00:44:08 +02:00
|
|
|
|
|
|
|
.collect_artifacts: &collect_artifacts
|
2016-11-07 15:07:37 +01:00
|
|
|
artifacts:
|
2018-10-09 15:32:07 +02:00
|
|
|
name: "${CI_JOB_NAME}_${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}"
|
2018-08-26 00:44:08 +02:00
|
|
|
when: on_success
|
|
|
|
expire_in: 1 mos
|
2016-11-07 15:07:37 +01:00
|
|
|
paths:
|
2018-08-26 00:44:08 +02:00
|
|
|
- artifacts/
|
|
|
|
|
2018-09-12 16:46:56 +02:00
|
|
|
.determine_version: &determine_version
|
|
|
|
- VERSION="$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' Cargo.toml)"
|
|
|
|
- DATE_STR="$(date +%Y%m%d)"
|
|
|
|
- ID_SHORT="$(echo ${CI_COMMIT_SHA} | cut -c 1-7)"
|
2018-10-09 15:32:07 +02:00
|
|
|
- test "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" = "nightly" && VERSION="${VERSION}-${ID_SHORT}-${DATE_STR}"
|
2018-09-12 16:46:56 +02:00
|
|
|
- export VERSION
|
|
|
|
- echo "Version = ${VERSION}"
|
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
test-linux:
|
2018-09-15 13:43:19 +02:00
|
|
|
stage: test
|
2018-10-01 12:55:17 +02:00
|
|
|
variables:
|
2018-10-02 01:03:58 +02:00
|
|
|
RUN_TESTS: all
|
2018-09-15 13:43:19 +02:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/test-all.sh stable
|
2018-09-15 13:43:19 +02:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
build-linux:
|
|
|
|
stage: build
|
|
|
|
only: *releaseable_branches
|
2018-10-01 12:55:17 +02:00
|
|
|
variables:
|
2018-10-02 01:03:58 +02:00
|
|
|
CARGO_TARGET: x86_64-unknown-linux-gnu
|
2018-09-15 13:43:19 +02:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/build-unix.sh
|
|
|
|
<<: *collect_artifacts
|
2018-09-15 13:43:19 +02:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
build-darwin:
|
|
|
|
stage: build
|
|
|
|
only: *releaseable_branches
|
2018-09-14 15:55:14 +02:00
|
|
|
variables:
|
|
|
|
CARGO_TARGET: x86_64-apple-darwin
|
|
|
|
CC: gcc
|
|
|
|
CXX: g++
|
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/build-unix.sh
|
2018-09-14 15:55:14 +02:00
|
|
|
tags:
|
2018-10-02 01:03:58 +02:00
|
|
|
- rust-osx
|
|
|
|
<<: *collect_artifacts
|
2018-09-14 15:55:14 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
build-windows:
|
|
|
|
stage: build
|
|
|
|
only: *releaseable_branches
|
2018-09-14 15:55:14 +02:00
|
|
|
variables:
|
|
|
|
CARGO_TARGET: x86_64-pc-windows-msvc
|
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- sh scripts/gitlab/build-windows.sh
|
2018-09-14 15:55:14 +02:00
|
|
|
tags:
|
|
|
|
- rust-windows
|
2018-10-02 01:03:58 +02:00
|
|
|
<<: *collect_artifacts
|
2018-08-26 00:44:08 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
publish-docker:
|
|
|
|
stage: publish
|
|
|
|
only: *releaseable_branches
|
|
|
|
cache: {}
|
|
|
|
dependencies:
|
|
|
|
- build-linux
|
|
|
|
tags:
|
|
|
|
- shell
|
2018-08-26 00:44:08 +02:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/publish-docker.sh parity
|
2018-08-26 00:44:08 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
publish-awss3:
|
|
|
|
stage: publish
|
|
|
|
only: *releaseable_branches
|
|
|
|
cache: {}
|
|
|
|
dependencies:
|
|
|
|
- build-linux
|
|
|
|
- build-darwin
|
|
|
|
- build-windows
|
|
|
|
before_script: *determine_version
|
2018-08-26 00:44:08 +02:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/publish-awss3.sh
|
|
|
|
tags:
|
|
|
|
- shell
|
2018-08-26 00:44:08 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
docs-jsonrpc:
|
|
|
|
stage: optional
|
|
|
|
only:
|
|
|
|
- tags
|
2018-10-09 12:50:31 +02:00
|
|
|
except:
|
|
|
|
- nightly
|
2018-10-02 01:03:58 +02:00
|
|
|
cache: {}
|
2016-11-04 07:59:48 +01:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/docs-jsonrpc.sh
|
2016-11-04 07:59:48 +01:00
|
|
|
tags:
|
2018-08-26 00:44:08 +02:00
|
|
|
- shell
|
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
cargo-audit:
|
|
|
|
stage: optional
|
2018-01-10 03:58:12 +01:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/cargo-audit.sh
|
2018-01-10 03:58:12 +01:00
|
|
|
tags:
|
|
|
|
- rust-stable
|
2018-08-26 00:44:08 +02:00
|
|
|
|
version: mark 2.2.0 beta (#9820)
* version: mark 2.2.0 beta
* ci: remove failing tests for android, windows, and macos (#9788)
* ci: remove failing tests for android, windows, and macos
* ci: restore android build jobs
* Move state root verification before gas used (#9841)
* Classic.json Bootnode Update (#9828)
* fix: Update bootnodes list to only responsive nodes
* feat: Add more bootnodes to classic.json list
* feat: Add retested bootnodes
* Implement NoProof for json tests and update tests reference (replaces #9744) (#9814)
* Update test reference.
Block test are really not working so I disabled a few by commenting
directly in source.
* Move ethtest commit cursor.
* Implements 'NoProof' engine from https://github.com/ethereum/tests/issues/464 .
Since tests has been regenerated those one were failing on block
difficulty check.
Update ethereum/tests, waiting for cost fix (block test are still
commented).
* Update tests submodule reference to latest (all test passing except an
identified case).
Fix block reward of constantinople json.
* Restore broken test by using old json tests files.
* Use CanonNoSeal instead of a custom engine, still have to include some
additional tests code.
* Gas upper limit check in json_chain test was bad, moving the test to
verification, the test is running in `verify_header_param`.
Note that test was previously only for ethash, and now for any engine.
* Restore old behavior (gas uper limit only for ethash engine), at the
cost of an additional trait method.
* Proper rpc test fix.
* Update tests submodule, add SStore bug tests.
* Fix json issue tabulation.
Update tests submodule to latest master (lot of new sstore tests
passing)
* Switch ethereum/tests to tag 6.0.0-beta.1 (no tests changes from latest
synch).
* Display hex with separator, use indirection instead of clone for copy
types.
2018-11-02 10:02:46 +01:00
|
|
|
build-android:
|
2018-10-02 01:03:58 +02:00
|
|
|
stage: optional
|
2018-08-26 00:44:08 +02:00
|
|
|
image: parity/rust-android:gitlab-ci
|
|
|
|
variables:
|
|
|
|
CARGO_TARGET: armv7-linux-androideabi
|
ci: always run build pipelines for win, mac, linux, and android (#9537)
* ci: always run build pipelines for win, mac, linux, and android
* ci: always run build pipelines for win, mac, linux, and android
* ci: disallow failure for publish scripts
* ci: enable tests on master
* ci: run tests in debug mode to speed things up
* ci: only build windows, darwin, and android targets on PRs
* ci: reenable darwin and android pipelines on PR
* ci: revert tests to run in release mode
2018-09-13 13:15:15 +02:00
|
|
|
script:
|
version: mark 2.2.0 beta (#9820)
* version: mark 2.2.0 beta
* ci: remove failing tests for android, windows, and macos (#9788)
* ci: remove failing tests for android, windows, and macos
* ci: restore android build jobs
* Move state root verification before gas used (#9841)
* Classic.json Bootnode Update (#9828)
* fix: Update bootnodes list to only responsive nodes
* feat: Add more bootnodes to classic.json list
* feat: Add retested bootnodes
* Implement NoProof for json tests and update tests reference (replaces #9744) (#9814)
* Update test reference.
Block test are really not working so I disabled a few by commenting
directly in source.
* Move ethtest commit cursor.
* Implements 'NoProof' engine from https://github.com/ethereum/tests/issues/464 .
Since tests has been regenerated those one were failing on block
difficulty check.
Update ethereum/tests, waiting for cost fix (block test are still
commented).
* Update tests submodule reference to latest (all test passing except an
identified case).
Fix block reward of constantinople json.
* Restore broken test by using old json tests files.
* Use CanonNoSeal instead of a custom engine, still have to include some
additional tests code.
* Gas upper limit check in json_chain test was bad, moving the test to
verification, the test is running in `verify_header_param`.
Note that test was previously only for ethash, and now for any engine.
* Restore old behavior (gas uper limit only for ethash engine), at the
cost of an additional trait method.
* Proper rpc test fix.
* Update tests submodule, add SStore bug tests.
* Fix json issue tabulation.
Update tests submodule to latest master (lot of new sstore tests
passing)
* Switch ethereum/tests to tag 6.0.0-beta.1 (no tests changes from latest
synch).
* Display hex with separator, use indirection instead of clone for copy
types.
2018-11-02 10:02:46 +01:00
|
|
|
- scripts/gitlab/build-unix.sh
|
2018-08-31 16:41:21 +02:00
|
|
|
tags:
|
|
|
|
- rust-arm
|
2018-08-26 00:44:08 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
test-beta:
|
|
|
|
stage: optional
|
2018-08-26 00:44:08 +02:00
|
|
|
variables:
|
2018-10-02 01:03:58 +02:00
|
|
|
RUN_TESTS: cargo
|
2017-01-25 19:48:36 +01:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/test-all.sh beta
|
2017-01-25 19:48:36 +01:00
|
|
|
tags:
|
2018-10-02 01:03:58 +02:00
|
|
|
- rust-beta
|
2018-08-26 00:44:08 +02:00
|
|
|
|
2018-10-02 01:03:58 +02:00
|
|
|
test-nightly:
|
|
|
|
stage: optional
|
2018-08-26 00:44:08 +02:00
|
|
|
variables:
|
2018-10-02 01:03:58 +02:00
|
|
|
RUN_TESTS: all
|
2016-10-31 19:51:29 +01:00
|
|
|
script:
|
2018-10-02 01:03:58 +02:00
|
|
|
- scripts/gitlab/test-all.sh nightly
|
2016-11-07 17:16:34 +01:00
|
|
|
tags:
|
2018-10-02 01:03:58 +02:00
|
|
|
- rust-nightly
|