add needed dev requirements

This commit is contained in:
jem 2021-10-15 16:48:16 +02:00
parent af20c6da16
commit e84ebc2bfb
2 changed files with 25 additions and 14 deletions

View file

@ -1,17 +1,9 @@
image: "python:3.7" image: "python:3.8"
before_script: before_script:
- python --version - python --version
- pip install -r requirements.txt - pip install -r requirements.txt
- export TFVER=0.13.4 - pip install -r dev_requirements.txt
- export TFURL=https://releases.hashicorp.com/terraform/
- TFURL+=$TFVER
- TFURL+="/terraform_"
- TFURL+=$TFVER
- TFURL+="_linux_amd64.zip"
- wget $TFURL -O terraform_bin.zip
- mkdir tf_bin
- unzip terraform_bin.zip -d tf_bin
stages: stages:
- test - test
@ -21,8 +13,16 @@ flake8:
script: script:
- flake8 --max-line-length=120 python_terraform/*.py - flake8 --max-line-length=120 python_terraform/*.py
pytest: pytest:
stage: test stage: test
script: script:
- export TFVER=0.13.4
- export TFURL=https://releases.hashicorp.com/terraform/
- TFURL+=$TFVER
- TFURL+="/terraform_"
- TFURL+=$TFVER
- TFURL+="_linux_amd64.zip"
- wget $TFURL -O terraform_bin.zip
- mkdir tf_bin
- unzip terraform_bin.zip -d tf_bin
- PATH=$PATH:$PWD/tf_bin pytest -v - PATH=$PATH:$PWD/tf_bin pytest -v

11
dev_requirements.txt Normal file
View file

@ -0,0 +1,11 @@
coverage==5.3
flake8==3.8.4
flake8-polyfill==1.0.2
mypy==0.790
mypy-extensions==0.4.3
pycodestyle==2.6.0
pyflakes==2.2.0
pylint==2.6.0
pytest==6.1.2
pytest-cov==2.10.1
pytest-datafiles==2.0