From ac3fa36688264dafcba97a82d3f74e603c8bc4b5 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 4 Oct 2017 15:31:07 +0200 Subject: [PATCH 1/2] Don't include those files in our dist/. --- _config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_config.yml b/_config.yml index 17b2172..c8033f1 100644 --- a/_config.yml +++ b/_config.yml @@ -20,3 +20,7 @@ collections: permalink: /blog/:title/ clients: output: false +exclude: + - vendor + - Gemfile + - Gemfile.lock From c975202355e36e43d4278e12fc06ffec80f06ec5 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 4 Oct 2017 15:36:04 +0200 Subject: [PATCH 2/2] 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!"