From 24dd147fd44e6bb51d49469c0cd690bebcfde172 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sun, 14 May 2017 22:46:45 -0500 Subject: [PATCH] Adding a build step --- .gitlab-ci.yml | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e46092..b61ed00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,8 @@ stages: - test + - build -test stable: +linux test stable: image: scorpil/rust:stable stage: test script: @@ -10,11 +11,12 @@ test stable: - cargo test only: - master + - develop tags: - docker allow_failure: false -test beta: +linux test beta: image: scorpil/rust:beta stage: test script: @@ -22,12 +24,12 @@ test beta: - cargo -V - cargo test only: - - master + - develop tags: - docker allow_failure: true -test nightly: +linux test nightly: image: scorpil/rust:nightly stage: test script: @@ -35,8 +37,42 @@ test nightly: - cargo -V - cargo test only: - - master + - develop tags: - docker allow_failure: true +linux build stable release: + image: scorpil/rust:stable + stage: build + script: + - rustc -V + - cargo -V + - cargo build --release + artifacts: + paths: + - target/release/*.so + - target/release/pihash + only: + - master + - develop + tags: + - docker + allow_failure: false + +linux build nightly release: + image: scorpil/rust:nightly + stage: build + script: + - rustc -V + - cargo -V + - cargo build --release + artifacts: + paths: + - target/release/*.so + - target/release/pihash + only: + - develop + tags: + - docker + allow_failure: true