From 17aa1f55e4da4640e83c9b5256116e488280b260 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Wed, 19 Sep 2018 13:30:28 -0700 Subject: [PATCH 1/2] CI integration for librustzcash Adding rustc --version and removing explicit cd to librustzcash Sanity check stage pipeline flow Cleaning up stages --- .gitlab-ci.yml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..d253bfe16 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,73 @@ + +# /************************************************************************ + # File: .gitlab-ci.yml + # Author: mdr0id + # Date: 9/10/2018 + # Description: Used to setup runners/jobs for librustzcash + # Usage: Commit source and the pipeline will trigger the according jobs. + # For now the build and test are done in the same jobs. + # + # Known bugs/missing features: + # + # ************************************************************************/ + +stages: + - build + - test + - deploy + +rust-latest: + stage: build + image: rust:latest + script: + - cargo --verbose --version + - time cargo build --verbose + +rust-nightly: + stage: build + image: rustlang/rust:nightly + script: + - cargo --verbose --version + - cargo build --verbose + allow_failure: true + +librustzcash-test-latest: + stage: test + image: rust:latest + script: + - cargo --verbose --version + - time cargo test --release --verbose + +librustzcash-test-latest: + stage: test + image: rust:latest + script: + - cargo --verbose --version + - time cargo test --release --verbose + +librustzcash-test-rust-nightly: + stage: test + image: rustlang/rust:nightly + script: + - cargo --verbose --version + - cargo test --release --verbose + allow_failure: true + +#used to manually deploy a given release +librustzcash-rust-rc: + stage: deploy + image: rust:latest + script: + - cargo --verbose --version + - time cargo build --release --verbose + when: manual + +#used to manually deploy a given release +librustzcash-rust-nightly-rc: + stage: deploy + image: rustlang/rust:nightly + script: + - cargo --verbose --version + - cargo build --release --verbose + allow_failure: true + when: manual From c0b953b8f7002bcc8f33e32bd2b5a2a32c75863e Mon Sep 17 00:00:00 2001 From: mdr0id Date: Tue, 9 Oct 2018 09:34:10 -0700 Subject: [PATCH 2/2] Remove duplicate test stage for rust lastest --- .gitlab-ci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d253bfe16..001f415bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,13 +38,6 @@ librustzcash-test-latest: - cargo --verbose --version - time cargo test --release --verbose -librustzcash-test-latest: - stage: test - image: rust:latest - script: - - cargo --verbose --version - - time cargo test --release --verbose - librustzcash-test-rust-nightly: stage: test image: rustlang/rust:nightly