flatisfy/.gitlab-ci.yml

20 lines
573 B
YAML
Raw Normal View History

2017-10-29 21:06:25 +01:00
before_script:
- "pip install -r requirements.txt"
- "pip install pylint"
- "curl -sL https://deb.nodesource.com/setup_10.x | bash -"
2018-01-17 13:35:19 +01:00
- "apt-get install -y nodejs jq"
2017-10-29 21:06:25 +01:00
- "npm install"
lint:
2017-10-29 21:06:25 +01:00
image: "python:3"
stage: "test"
script:
- "hooks/pre-commit"
2018-01-17 13:35:19 +01:00
test:
2018-01-17 13:35:19 +01:00
image: "python:3"
stage: "test"
script:
- python -m flatisfy init-config | jq '.constraints.default.house_types = ["APART"] | .constraints.default.type = "RENT" | .constraints.default.postal_codes = ["75014"]' > /tmp/config.json
2018-01-17 13:35:19 +01:00
- python -m flatisfy test --config /tmp/config.json