.gitlab-ci.yml 703 Bytes
Newer Older
Houtan Bastani's avatar
Houtan Bastani committed
1
2
3
variables:
  TERM: linux

Sébastien Villemot's avatar
Sébastien Villemot committed
4
build:
Houtan Bastani's avatar
Houtan Bastani committed
5
6
7
  stage: build
  tags:
    - jekyll
Sébastien Villemot's avatar
Sébastien Villemot committed
8
9
10
11
12
13
14
15
16
17
  variables:
    JEKYLL_ENV: production
  before_script:
    - export LC_ALL="C.UTF-8"
    - export LANG="en_US.UTF-8"
    - export LANGUAGE="en_US.UTF-8"
    - export GEM_HOME=$HOME/gems
    - export PATH=$HOME/gems/bin:$PATH
    - gem install jekyll
    - gem install bundler
Houtan Bastani's avatar
Houtan Bastani committed
18
    - (cd _data && wget http://www.dynare.org/RePEc/cpm/dynare/wp.yml)
Sébastien Villemot's avatar
Sébastien Villemot committed
19
    - bundle install
Houtan Bastani's avatar
Houtan Bastani committed
20
  script:
Houtan Bastani's avatar
Houtan Bastani committed
21
    - (cd assets/images/logo && make)
Houtan Bastani's avatar
Houtan Bastani committed
22
23
24
25
26
    - bundle exec jekyll build
  artifacts:
    paths:
    - _site

Sébastien Villemot's avatar
Sébastien Villemot committed
27
28
29
30
31
32
33
34
deploy:
  stage: deploy
  tags:
    - secure
  dependencies:
    - build
  script:
    - scp -r _site/* dynbot@eris.dynare.org:/srv/www.dynare.org/