Run new unittests in CI
This commit is contained in:
parent
9b840c2fd1
commit
80b0384d73
@ -2,7 +2,7 @@ before_script:
|
|||||||
- "pip install -r requirements.txt"
|
- "pip install -r requirements.txt"
|
||||||
- "pip install pylint"
|
- "pip install pylint"
|
||||||
- "curl -sL https://deb.nodesource.com/setup_6.x | bash -"
|
- "curl -sL https://deb.nodesource.com/setup_6.x | bash -"
|
||||||
- "apt-get install -y nodejs"
|
- "apt-get install -y nodejs jq"
|
||||||
- "npm install"
|
- "npm install"
|
||||||
|
|
||||||
lint:2.7:
|
lint:2.7:
|
||||||
@ -16,3 +16,16 @@ lint:3:
|
|||||||
stage: "test"
|
stage: "test"
|
||||||
script:
|
script:
|
||||||
- "hooks/pre-commit"
|
- "hooks/pre-commit"
|
||||||
|
|
||||||
|
test:2.7:
|
||||||
|
image: "python:2.7"
|
||||||
|
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
|
||||||
|
- python -m flatisfy test --config /tmp/config.json
|
||||||
|
test:3:
|
||||||
|
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
|
||||||
|
- python -m flatisfy test --config /tmp/config.json
|
||||||
|
Loading…
Reference in New Issue
Block a user