.gitlab-ci.yml 821 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
    - pwd
    - ls -la
21
    - bash setup-release.sh
22
    - bash setup-snapshots.sh
Sébastien Villemot's avatar
Sébastien Villemot committed
23
    - bundle install
Houtan Bastani's avatar
Houtan Bastani committed
24
  script:
Houtan Bastani's avatar
Houtan Bastani committed
25
    - (cd assets/images/logo && make)
Houtan Bastani's avatar
Houtan Bastani committed
26
27
28
29
30
    - bundle exec jekyll build
  artifacts:
    paths:
    - _site

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