You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dda-python-terraform/.gitlab-ci.yml

29 lines
577 B
YAML

image: "python:3.8"
before_script:
- python --version
- pip install -r requirements.txt
- pip install -r dev_requirements.txt
stages:
3 years ago
- test
flake8:
3 years ago
stage: test
script:
3 years ago
- 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
3 years ago
- PATH=$PATH:$PWD/tf_bin pytest -v