Skip to content

Commit

Permalink
ci: always run build pipelines for win, mac, linux, and android (open…
Browse files Browse the repository at this point in the history
…ethereum#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
  • Loading branch information
5chdn authored Sep 13, 2018
1 parent 4ddd69c commit c77e998
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ build-linux-ubuntu-amd64: &build
<<: *collect_artifacts
tags:
- rust-stable
allow_failure: true

build-linux-ubuntu-i386:
<<: *build
only: *releaseable_branches
image: parity/rust-i686:gitlab-ci
variables:
CARGO_TARGET: i686-unknown-linux-gnu
Expand All @@ -121,6 +121,7 @@ build-linux-ubuntu-i386:

build-linux-ubuntu-arm64:
<<: *build
only: *releaseable_branches
image: parity/rust-arm64:gitlab-ci
variables:
CARGO_TARGET: aarch64-unknown-linux-gnu
Expand All @@ -129,33 +130,37 @@ build-linux-ubuntu-arm64:

build-linux-ubuntu-armhf:
<<: *build
only: *releaseable_branches
image: parity/rust-armv7:gitlab-ci
variables:
CARGO_TARGET: armv7-unknown-linux-gnueabihf
tags:
- rust-arm

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

build-darwin-macos-x86_64:
<<: *build
stage: build
variables:
CARGO_TARGET: x86_64-apple-darwin
CC: gcc
CXX: g++
script:
- scripts/gitlab/build-unix.sh
tags:
- osx
<<: *collect_artifacts

build-windows-msvc-x86_64:
stage: build
only: *releaseable_branches
cache:
key: "%CI_JOB_NAME%"
paths:
Expand Down Expand Up @@ -259,7 +264,6 @@ publish-docker-parity-amd64: &publish_docker
- build-linux-ubuntu-amd64
tags:
- shell
allow_failure: true
script:
- scripts/gitlab/publish-docker.sh parity

Expand All @@ -284,7 +288,6 @@ publish-github-and-s3:
- scripts/gitlab/push.sh
tags:
- shell
allow_failure: true


####stage: docs
Expand Down
2 changes: 1 addition & 1 deletion scripts/gitlab/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -u # treat unset variables as error

rustup default $1

if [[ "$CI_COMMIT_REF_NAME" = "beta" || "$CI_COMMIT_REF_NAME" = "stable" ]]; then
if [[ "$CI_COMMIT_REF_NAME" = "master" || "$CI_COMMIT_REF_NAME" = "beta" || "$CI_COMMIT_REF_NAME" = "stable" ]]; then
export GIT_COMPARE=$CI_COMMIT_REF_NAME~;
else
export GIT_COMPARE=master;
Expand Down

0 comments on commit c77e998

Please sign in to comment.