From c975202355e36e43d4278e12fc06ffec80f06ec5 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 4 Oct 2017 15:36:04 +0200 Subject: [PATCH] Add proper stages for Gitlab CI. --- .gitlab-ci.yml | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 250d49a..142a1ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,35 @@ image: ruby:2.4.2 -pages: - stage: build +variables: + GEMSPEC: "autonomic.gemspec" + +stages: + - quality + - gem-build + - site-build + - deploy + +quality-assurance: + stage: quality script: - - gem install jekyll - - jekyll build -d public - - gem build autonomic.gemspec + - echo "TODO!" + +gem-builder: + stage: gem-build + script: + - gem build $GEMSPEC + +site-builder: + stage: site-build + before_script: + - gem install jekyll + script: + - jekyll build artifacts: paths: - - public - - "autonomic-*.gem" - only: - - master \ No newline at end of file + - dist + +production-deploy: + stage: deploy + script: + - echo "TODO!"