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
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
- dist
production-deploy:
stage: deploy
script:
- echo "TODO!"