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_6.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:2.7:
|
|
|
|
image: "python:2.7"
|
|
|
|
stage: "test"
|
|
|
|
script:
|
|
|
|
- "hooks/pre-commit"
|
|
|
|
|
|
|
|
lint:3:
|
|
|
|
image: "python:3"
|
|
|
|
stage: "test"
|
|
|
|
script:
|
|
|
|
- "hooks/pre-commit"
|
2018-01-17 13:35:19 +01:00
|
|
|
|
|
|
|
test:2.7:
|
|
|
|
image: "python:2.7"
|
|
|
|
stage: "test"
|
|
|
|
script:
|
2018-01-18 14:00:13 +01:00
|
|
|
- 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
|
|
|
|
test:3:
|
|
|
|
image: "python:3"
|
|
|
|
stage: "test"
|
|
|
|
script:
|
2018-01-18 14:00:13 +01:00
|
|
|
- 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
|