.gitlab-ci.yml 793 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
18
    - (cd _data && wget https://www.dynare.org/RePEc/cpm/dynare/wp.yml)
19 20 21
    - pwd
    - ls -la
    - bash setup-snapshots.sh
Sébastien Villemot's avatar
Sébastien Villemot committed
22
    - bundle install
Houtan Bastani's avatar
Houtan Bastani committed
23
  script:
Houtan Bastani's avatar
Houtan Bastani committed
24
    - (cd assets/images/logo && make)
Houtan Bastani's avatar
Houtan Bastani committed
25 26 27 28 29
    - bundle exec jekyll build
  artifacts:
    paths:
    - _site

Sébastien Villemot's avatar
Sébastien Villemot committed
30 31
deploy:
  stage: deploy
32 33
  only:
    - master@Dynare/website
Sébastien Villemot's avatar
Sébastien Villemot committed
34 35 36 37 38 39
  tags:
    - secure
  dependencies:
    - build
  script:
    - scp -r _site/* dynbot@eris.dynare.org:/srv/www.dynare.org/