.gitlab-ci.yml 402 Bytes
Newer Older
1
image: ruby:2.5
Christophe Trefois's avatar
Christophe Trefois committed
2
3
4
5
6

variables:
  JEKYLL_ENV: production

before_script:
Yohan Jarosz's avatar
Yohan Jarosz committed
7
  - bundle install && bundle update
Christophe Trefois's avatar
Christophe Trefois committed
8
9
10
11
12
13

test:
  stage: test
  script:
  - bundle exec jekyll build -d test
  artifacts:
Jacek Lebioda's avatar
Jacek Lebioda committed
14
    expire_in: 1 week
Christophe Trefois's avatar
Christophe Trefois committed
15
16
17
18
19
20
21
22
23
24
    paths:
    - test
  except:
  - master

pages:
  stage: deploy
  script:
  - bundle exec jekyll build -d public
  artifacts:
Jacek Lebioda's avatar
Jacek Lebioda committed
25
    expire_in: 1 week
Christophe Trefois's avatar
Christophe Trefois committed
26
27
28
29
    paths:
    - public
  only:
  - master