From 4cceab4c12f03a2cd8512e401c202ee0651f34e4 Mon Sep 17 00:00:00 2001 From: Daniel Atkinson Date: Wed, 9 Dec 2015 00:28:06 +0000 Subject: [PATCH 1/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8722b1..ffb3dec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,28 @@ before_script: - ls -lah +stages: + - build + - test + - deploy +job_build: + stage: build + script: + - cargo build + tags: + - rust job_test: + stage: test script: - cargo test tags: - rust +job_deploy: + stage: deploy + script: + - ls + - echo $CI_BUILD_NAME + - echo $CI_BUILD_TAG + - echo $CI_BUILD_REF + tags: + - rust + - bastet.link From 9f8e3e912b8b057ddf0820445f7aed94d693f46e Mon Sep 17 00:00:00 2001 From: Daniel Atkinson Date: Wed, 9 Dec 2015 00:32:52 +0000 Subject: [PATCH 2/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ffb3dec..4cf56ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,9 +20,8 @@ job_deploy: stage: deploy script: - ls - - echo $CI_BUILD_NAME - - echo $CI_BUILD_TAG - - echo $CI_BUILD_REF + - echo $CI_BUILD_TRIGGERED + - echo $CI_BUILD_REF_NAME tags: - rust - bastet.link From e3f4bb920023a303e1ea1d2149f53cc61c7ed8e6 Mon Sep 17 00:00:00 2001 From: Daniel Atkinson Date: Wed, 9 Dec 2015 00:40:00 +0000 Subject: [PATCH 3/4] testing auto release on ci pass --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4cf56ea..c31f25b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,9 +19,8 @@ job_test: job_deploy: stage: deploy script: - - ls - - echo $CI_BUILD_TRIGGERED - - echo $CI_BUILD_REF_NAME + - mkdir -p $release_route/linux/$CI_BUILD_REF_NAME + - cp target/debug/bastet $release_route/linux/$CI_BUILD_REF_NAME/bastet tags: - rust - bastet.link From 8d235d4c2f9e9226f91f3726778fbf84a355a7db Mon Sep 17 00:00:00 2001 From: Daniel Atkinson Date: Wed, 9 Dec 2015 00:42:24 +0000 Subject: [PATCH 4/4] build before all steps --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c31f25b..9e983ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ before_script: - - ls -lah + - cargo build stages: - build - test