add needed dev requirements

merge-requests/2/merge
jem 3 years ago
parent af20c6da16
commit e84ebc2bfb

@ -1,18 +1,10 @@
image: "python:3.7"
image: "python:3.8"
before_script:
- python --version
- pip install -r requirements.txt
- 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
- pip install -r dev_requirements.txt
stages:
- test
@ -21,8 +13,16 @@ flake8:
script:
- flake8 --max-line-length=120 python_terraform/*.py
pytest:
stage: test
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

@ -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
Loading…
Cancel
Save