.gitlab-ci.yml 937 Bytes
Newer Older
1 2 3 4 5
image: node:jessie
variables:
  JEKYLL_ENV: production
  LC_ALL: C.UTF-8
  MARKDOWN: "node_modules/.bin/markdown"
6
  MARKDOWNPDF: "node_modules/.bin/markdown-pdf"
7
before_script:
8
  - npm install markdown-to-html markdown-pdf
9 10 11 12
  - curl -o /usr/local/bin/jq -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
  - curl -o /usr/local/bin/gojsontmpl -L https://git.feneas.org/feneas/infrastructure/gojsontmpl/raw/master/dist/gojsontmpl
  - chmod +x /usr/local/bin/jq
  - chmod +x /usr/local/bin/gojsontmpl
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
test:
  stage: test
  script:
  - bash scripts/gen.sh test
  artifacts:
    paths:
    - test
  except:
  - master
pages:
  stage: deploy
  script:
  - bash scripts/gen.sh public
  artifacts:
    paths:
    - public
  only:
  - master
zauberstuhl's avatar
zauberstuhl committed
31 32 33 34 35 36 37 38 39 40
ghost service update:
  stage: deploy
  trigger:
    project: feneas/infrastructure/ghost-theme
    strategy: depend
  only:
    refs:
      - master
    changes:
      - services.json