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:
- echo "TODO!"
gem-builder:
stage: gem-build
script:
- gem build $GEMSPEC
site-builder:
stage: site-build
before_script:
- gem install jekyll - gem install jekyll
- jekyll build -d public script:
- gem build autonomic.gemspec - jekyll build
artifacts: artifacts:
paths: paths:
- public - dist
- "autonomic-*.gem"
only: production-deploy:
- master stage: deploy
script:
- echo "TODO!"