diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c4364b..e60f430 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,21 @@ -image: "python:3.7" +image: "python:3.8" before_script: - python --version - pip install -r requirements.txt + - pip install -r dev_requirements.txt + +stages: + - test + +flake8: + stage: test + 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 @@ -12,17 +25,4 @@ before_script: - wget $TFURL -O terraform_bin.zip - mkdir tf_bin - unzip terraform_bin.zip -d tf_bin - -stages: - - test - -flake8: - stage: test - script: - - flake8 --max-line-length=120 python_terraform/*.py - - -pytest: - stage: test - script: - PATH=$PATH:$PWD/tf_bin pytest -v diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..b2a038a --- /dev/null +++ b/dev_requirements.txt @@ -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