diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbdc3b3..0ae5b86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,14 @@ image: ruby:2.3 +variables: + JEKYLL_ENV: production + +before_script: + - bundle install + test: stage: test script: - - bundle - bundle exec jekyll build -d test artifacts: paths: @@ -14,7 +19,6 @@ test: pages: stage: deploy script: - - bundle - bundle exec jekyll build -d public artifacts: paths: diff --git a/README.md b/README.md index 83f58e9..657b5a4 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,9 @@ defined in [`.gitlab-ci.yml`](.gitlab-ci.yml): ``` image: ruby:2.3 +variables: + JEKYLL_ENV: production + pages: script: - gem install jekyll