.gitlab-ci.yml 725 Bytes
Newer Older
Connor Shea's avatar
Connor Shea committed
1
image: ruby:2.5
2

Connor Shea's avatar
Connor Shea committed
3 4 5 6 7
variables:
  JEKYLL_ENV: production
  LC_ALL: C.UTF-8

before_script:
Connor Shea's avatar
Connor Shea committed
8
  - bundle install --without dependabot
Connor Shea's avatar
Connor Shea committed
9 10 11 12 13 14 15 16

test:
  stage: test
  script:
    - bundle exec jekyll build -d test
  artifacts:
    paths:
      - test
Connor Shea's avatar
Connor Shea committed
17 18
  except:
    - schedules
Connor Shea's avatar
Connor Shea committed
19

20
pages:
Connor Shea's avatar
Connor Shea committed
21
  stage: deploy
22
  script:
Connor Shea's avatar
Connor Shea committed
23
    - bundle exec jekyll build -d public
24 25 26 27 28
  artifacts:
    paths:
      - public
  only:
    - master
Connor Shea's avatar
Connor Shea committed
29 30 31 32
  except:
    - schedules

dependabot:
Connor Shea's avatar
Connor Shea committed
33
  stage: build
Connor Shea's avatar
Connor Shea committed
34 35
  variables:
    GIT_SUBMODULE_STRATEGY: normal
Connor Shea's avatar
Connor Shea committed
36 37 38
    PROJECT_PATH: $CI_PROJECT_PATH
    PACKAGE_MANAGER: bundler
    GITLAB_HOST_NAME: gitlab.com
39
    GITLAB_AUTO_MERGE: "true"
Connor Shea's avatar
Connor Shea committed
40 41 42
  before_script:
    - bundle install
  script:
43
    - ruby bin/dependabot.rb
Connor Shea's avatar
Connor Shea committed
44 45
  only:
    - schedules