.gitlab-ci.yml 967 Bytes
Newer Older
Phyks's avatar
Phyks committed
1 2 3 4
before_script:
  - "pip install -r requirements.txt"
  - "pip install pylint"
  - "curl -sL https://deb.nodesource.com/setup_6.x | bash -"
Phyks's avatar
Phyks committed
5
  - "apt-get install -y nodejs jq"
Phyks's avatar
Phyks committed
6 7 8 9 10 11 12 13 14 15 16 17 18
  - "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"
Phyks's avatar
Phyks committed
19 20 21 22 23

test:2.7:
  image: "python:2.7"
  stage: "test"
  script:
24
    - python -m flatisfy init-config | jq '.constraints.default.house_types = ["APART"] | .constraints.default.type = "RENT" | .constraints.default.postal_codes = ["75014"]' > /tmp/config.json
Phyks's avatar
Phyks committed
25 26 27 28 29
    - python -m flatisfy test --config /tmp/config.json
test:3:
  image: "python:3"
  stage: "test"
  script:
30
    - python -m flatisfy init-config | jq '.constraints.default.house_types = ["APART"] | .constraints.default.type = "RENT" | .constraints.default.postal_codes = ["75014"]' > /tmp/config.json
Phyks's avatar
Phyks committed
31
    - python -m flatisfy test --config /tmp/config.json