.gitlab-ci.yml 920 Bytes
Newer Older
Florian Pagnoux's avatar
Florian Pagnoux committed
1
2
image: nikolaik/python-nodejs

Florian Pagnoux's avatar
Florian Pagnoux committed
3
4
5
6
7
8
9
10
11
variables:
    PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

cache:
  key: v2-${CI_COMMIT_REF_SLUG}
  paths:
  - .cache/node_modules
  - .cache/pip

Florian Pagnoux's avatar
Florian Pagnoux committed
12
13
pages:
    script:
Florian Pagnoux's avatar
Florian Pagnoux committed
14
        - cd .openfisca
Florian Pagnoux's avatar
Florian Pagnoux committed
15
16
17
18
        - pip install --editable .
        - pip install --editable git+https://github.com/openfisca/openfisca-core.git@params-int-node#egg=OpenFisca-Core
        - openfisca serve -p 2000 &
        - wget --retry-connrefused --waitretry=1 --quiet http://localhost:2000
Florian Pagnoux's avatar
Florian Pagnoux committed
19
        - cd ..
Florian Pagnoux's avatar
Florian Pagnoux committed
20
21
22
        - git clone https://github.com/fpagnoux/baremes-ipp-views.git
        - cd baremes-ipp-views
        - git checkout parsed-xlsx
Florian Pagnoux's avatar
Florian Pagnoux committed
23
        - if [ -d "$CI_PROJECT_DIR/.cache/node_modules" ]; then mv $CI_PROJECT_DIR/.cache/node_modules . ; fi
Florian Pagnoux's avatar
Florian Pagnoux committed
24
        - yarn && yarn build && yarn export
Florian Pagnoux's avatar
Florian Pagnoux committed
25
26
        - mv node_modules $CI_PROJECT_DIR/.cache
        - mv out ../public
Florian Pagnoux's avatar
Florian Pagnoux committed
27
28
29
30

    artifacts:
      paths:
        - public