Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Test fix for windows cache name... (#9658)
Browse files Browse the repository at this point in the history
* Test fix for windows cache name...

* Fix variable name.
  • Loading branch information
ddorgan authored and 5chdn committed Sep 30, 2018
1 parent 8099efc commit b7edf41
Showing 1 changed file with 73 additions and 27 deletions.
100 changes: 73 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,75 @@ cache:
- export VERSION
- echo "Version = ${VERSION}"



#### stage: test

test-rust-stable: &test
test-linux-rust-stable: &test
stage: test
script:
- scripts/gitlab/test.sh stable
tags:
- rust-stable

.optional_test: &optional_test
<<: *test
allow_failure: true
only:
- master

test-rust-beta:
<<: *optional_test
test-linux-rust-beta:
stage: test
script:
- scripts/gitlab/test.sh beta
tags:
- rust-stable
allow_failure: true

test-rust-nightly:
<<: *optional_test
test-linux-rust-nightly:
stage: test
script:
- scripts/gitlab/test.sh nightly
tags:
- rust-stable
allow_failure: true

test-darwin-rust-stable:
stage: test
variables:
CARGO_TARGET: x86_64-apple-darwin
CC: gcc
CXX: g++
script:
- scripts/gitlab/test.sh stable
tags:
- osx
allow_failure: true

test-android-rust-stable:
stage: test
image: parity/rust-android:gitlab-ci
variables:
CARGO_TARGET: armv7-linux-androideabi
script:
- scripts/gitlab/test.sh stable
tags:
- rust-arm
allow_failure: true

test-windows-rust-stable:
stage: test
cache:
key: "${CI_JOB_NAME}"
paths:
- "%CI_PROJECT_DIR%/target/"
- "%CI_PROJECT_DIR%/cargo/"
# No cargo caching, since fetch-locking on Windows gets stuck
variables:
CARGO_TARGET: x86_64-pc-windows-msvc
script:
- sh scripts/gitlab/test.sh stable
tags:
- rust-windows
allow_failure: true

.optional_test: &optional_test
<<: *test
allow_failure: true
only:
- master

test-lint-rustfmt:
<<: *optional_test
Expand All @@ -87,15 +130,11 @@ test-lint-clippy:
- scripts/gitlab/clippy.sh

test-coverage-kcov:
stage: test
only:
- master
<<: *optional_test
script:
- scripts/gitlab/coverage.sh
tags:
- shell
allow_failure: true


#### stage: build

Expand All @@ -109,46 +148,58 @@ 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
tags:
- rust-i686
allow_failure: true

build-linux-ubuntu-arm64:
<<: *build
only: *releaseable_branches
image: parity/rust-arm64:gitlab-ci
variables:
CARGO_TARGET: aarch64-unknown-linux-gnu
tags:
- rust-arm
allow_failure: true

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

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

build-darwin-macos-x86_64:
<<: *build
stage: build
only: *releaseable_branches
variables:
CARGO_TARGET: x86_64-apple-darwin
CC: gcc
CXX: g++
script:
- scripts/gitlab/build-unix.sh
tags:
- osx
<<: *collect_artifacts
Expand All @@ -157,7 +208,7 @@ build-windows-msvc-x86_64:
stage: build
only: *releaseable_branches
cache:
key: "%CI_JOB_NAME%"
key: "${CI_JOB_NAME}"
paths:
- "%CI_PROJECT_DIR%/target/"
- "%CI_PROJECT_DIR%/cargo/"
Expand All @@ -170,7 +221,6 @@ build-windows-msvc-x86_64:
- rust-windows
<<: *collect_artifacts


#### stage: package

package-linux-snap-amd64: &package_snap
Expand Down Expand Up @@ -215,7 +265,6 @@ package-linux-snap-armhf:
dependencies:
- build-linux-ubuntu-armhf


#### stage: publish

publish-linux-snap-amd64: &publish_snap
Expand Down Expand Up @@ -262,7 +311,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 @@ -287,8 +335,6 @@ publish-github-and-s3:
- scripts/gitlab/push.sh
tags:
- shell
allow_failure: true


####stage: docs

Expand Down

0 comments on commit b7edf41

Please sign in to comment.