~xdavidwu/xdavidwu.link

84726be60a05d7c9f912e1cb056c9c28acce13ba — xdavidwu 4 years ago 3e4fdd6
fix ci
1 files changed, 7 insertions(+), 20 deletions(-)

M .gitlab-ci.yml
M .gitlab-ci.yml => .gitlab-ci.yml +7 -20
@@ 1,37 1,24 @@
# 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.3
image: ruby:latest

variables:
  JEKYLL_ENV: production
  LC_ALL: "C.UTF-8"
  LANG: "en_US.UTF-8"
  LANGUAGE: "en_US.UTF-8"
  GIT_SUBMODULE_STRATEGY: recursive


before_script:
- bundle install -j 24

test:
  stage: test
  script:
  - bundle exec jekyll build -d test
  artifacts:
    paths:
    - test
  except:
  - master

pages:
  stage: deploy
  before_script:
  - mkdir -p .bundler
  - bundle install -j 24 --path .bundler
  script:
  - bundle exec rougify style base16.dark >> assets/css/main.scss
  - bundle exec jekyll build -d public
  artifacts:
    paths:
    - public
  caches:
    paths:
    - .bundler
  only:
  - master