Add proper stages for Gitlab CI.

This commit is contained in:
Luke Murphy 2017-10-04 15:36:04 +02:00
parent ac3fa36688
commit c975202355
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,14 +1,35 @@
image: ruby:2.4.2 image: ruby:2.4.2
pages: variables:
stage: build GEMSPEC: "autonomic.gemspec"
stages:
- quality
- gem-build
- site-build
- deploy
quality-assurance:
stage: quality
script: script:
- gem install jekyll - echo "TODO!"
- jekyll build -d public
- gem build autonomic.gemspec gem-builder:
stage: gem-build
script:
- gem build $GEMSPEC
site-builder:
stage: site-build
before_script:
- gem install jekyll
script:
- jekyll build
artifacts: artifacts:
paths: paths:
- public - dist
- "autonomic-*.gem"
only: production-deploy:
- master stage: deploy
script:
- echo "TODO!"