-
Augustin Lemesle authoredAugustin Lemesle authored
.gitlab-ci.yml 1.24 KiB
# This file is a template, and might need editing before it works on your project.
# Template project: https://gitlab.com/pages/jekyll
# Docs: https://docs.gitlab.com/ce/pages/
image: ruby:2.4
variables:
JEKYLL_ENV: production
# Cache gems in between builds
cache:
paths:
- vendor/ruby
before_script:
- ruby -v # Print out ruby version for debugging
- gem install bundler -v '2.0.2'
- bundle install -j $(nproc) --path vendor
test:
stage: test
script:
- cd generator
- chmod +x ./generate
- curl https://git.frama-c.com/api/v4/projects/780/repository/files/Changelog/raw?ref=master > ../assets/Changelog
- ./generate ../assets/Changelog -o ../html/changelog.html
- cd ..
- bundle exec jekyll build -d test --future
artifacts:
paths:
- test
expire_in: 1 month
except:
- master
tags:
- docker
pages:
stage: deploy
script:
- cd generator
- chmod +x ./generate
- curl https://git.frama-c.com/api/v4/projects/780/repository/files/Changelog/raw?ref=master > ../assets/Changelog
- ./generate ../assets/Changelog -o ../html/changelog.html
- cd ..
- bundle exec jekyll build -d public --future
artifacts:
paths:
- public
expire_in: 1 month
tags:
- docker