From 28dba74a0ed6004665d7b2faf2c1171d0637542d Mon Sep 17 00:00:00 2001 From: Denis P Date: Fri, 10 Jan 2020 20:17:34 +0100 Subject: [PATCH 1/4] change the CI docker image --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 417f9404..100dbe52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ variables: - artifacts/ .docker-env: &docker-env - image: parity/rust-builder:latest + image: ${REGISTRY}/contracts-ci-linux:latest before_script: - cargo -vV - rustc -vV @@ -62,7 +62,6 @@ fmt: stage: check <<: *docker-env script: - - rustup component add rustfmt - cargo fmt --verbose --all -- --check #### stage: test -- GitLab From f83976a84990f2bddd68b48507af4afb415fc83c Mon Sep 17 00:00:00 2001 From: Denis P Date: Mon, 9 Mar 2020 16:07:28 +0100 Subject: [PATCH 2/4] should have created the dir to store artifacts --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cee2ce40..5d8789bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,4 +87,6 @@ build: - master script: - cargo build --verbose --release - - cp ${CARGO_TARGET_DIR}/release/cargo-contract ./artifacts/cargo-contract/. + after_script: + - mkdir -p ./artifacts/cargo-contract/ + - cp ${CARGO_TARGET_DIR}/release/cargo-contract ./artifacts/cargo-contract/ -- GitLab From d7d011f74694770949f3149170654a7cba67d9db Mon Sep 17 00:00:00 2001 From: Denis P Date: Mon, 9 Mar 2020 16:09:34 +0100 Subject: [PATCH 3/4] test saving artifact --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5d8789bf..7c3a2de5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,9 +82,9 @@ build: stage: build <<: *docker-env <<: *collect-artifacts - only: - - schedules - - master + # only: + # - schedules + # - master script: - cargo build --verbose --release after_script: -- GitLab From b3913161342eae2f631de5d437eecfe55fea3ac4 Mon Sep 17 00:00:00 2001 From: Denis P Date: Mon, 9 Mar 2020 16:20:41 +0100 Subject: [PATCH 4/4] test ok, ready to merge --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c3a2de5..5d8789bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,9 +82,9 @@ build: stage: build <<: *docker-env <<: *collect-artifacts - # only: - # - schedules - # - master + only: + - schedules + - master script: - cargo build --verbose --release after_script: -- GitLab