From 80b0384d738d75c05e0681eb0fe002a2e3aa52b0 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 17 Jan 2018 13:35:19 +0100 Subject: [PATCH] Run new unittests in CI --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72a7f91..dbd5760 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ before_script: - "pip install -r requirements.txt" - "pip install pylint" - "curl -sL https://deb.nodesource.com/setup_6.x | bash -" - - "apt-get install -y nodejs" + - "apt-get install -y nodejs jq" - "npm install" lint:2.7: @@ -16,3 +16,16 @@ lint:3: stage: "test" script: - "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