diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-01-05 19:29:23 +0000 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-01-05 19:29:23 +0000 |
commit | b827c54eba3d239db94b56c4afa3acaa77956aeb (patch) | |
tree | 069c0b19f384d8238ecd067526f3ad5ab17c0762 /.gitlab-ci.yml | |
parent | 201544c7397b209f6ded4023068fba2309323077 (diff) |
Update .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d03a52..f7736c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,28 @@ -# This file is a template, and might need editing before it works on your project. -# Full project: https://gitlab.com/pages/jekyll -image: ruby:2.3 +image: ruby:2.3 # Use Ruby Docker image + +cache: # Add Bundler cache to 'vendor' directory + paths: + - vendor/ + +before_script: # Install Gems to 'vendor' directory + - bundle install --path vendor test: stage: test - script: - - gem install jekyll - - jekyll build -d test - artifacts: + script: # Generate test site(s) into 'test' directory + - bundle exec jekyll build -d test + artifacts: # Save a zipped version for download paths: - test - except: + except: # Execute for all branches except master - master pages: stage: deploy - script: - - gem install jekyll - - jekyll build -d public - artifacts: + script: # Generate public site and deploy + - bundle exec jekyll build -d public + artifacts: # Save a zipped version for download paths: - public - only: - - master + only: # Only deploy the master branch + - master
\ No newline at end of file |