-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
36 lines (32 loc) · 967 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
image: python:3.9
stages:
- test
test:
stage: test
only:
changes:
- .gitlab-ci.yml
- setup.{cfg,py}
- Makefile
- openfisca_france_pension/*.py
- openfisca_france_pension/parameters
- openfisca_france_pension/tests
script:
- pip install -e .[dev]
- make test
validate_yaml:
stage: test
image: curlimages/curl:latest
variables:
PARAMETERS_PATH: openfisca_france_pension/parameters
script:
- |
env | curl --data-binary @- --fail-with-body --header "Content-Type: text/plain; charset=utf-8" --max-time 300 --silent https://control-center.tax-benefit.org/api/gitlab/ci
tax-benefit_deploy:
stage: test
image: curlimages/curl:latest
variables:
PYTHON_PACKAGE: openfisca_france_pension
script:
- |
env | curl --data-binary @- --fail-with-body --header "Content-Type: text/plain; charset=utf-8" --max-time 300 --silent https://control-center.tax-benefit.org/api/gitlab/ci