Skip to content

Commit c5ad743

Browse files
author
Edmund Dipple
authored
Update pyhcl version (elmundio87#15)
* Update pyhcl dependency * Run code coverage as well as unit tests * Coverage reporting on Windows
1 parent 3567e9d commit c5ad743

File tree

6 files changed

+45
-4
lines changed

6 files changed

+45
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ terraform_validate/__init__.pyc
66
terraform_validate/__pycache__/
77
terraform_validate/terraform_validate.pyc
88
terraform_validate.egg-info/
9+
htmlcov/

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ python:
55
- "3.2"
66
- "3.3"
77
- "3.4"
8+
- "3.5"
9+
- "3.5-dev" # 3.5 development branch
10+
- "3.6-dev" # 3.6 development branch
11+
- "nightly" # currently points to 3.7-dev
812
# does not have headers provided, please ask https://launchpad.net/~pypy/+archive/ppa
913
# maintainers to fix their pypy-dev package.
1014
- "pypy"
1115
# command to install dependencies
1216
install:
1317
- pip install unittest2
18+
- pip install 'coverage<4'
1419
- pip install .
1520
- pip install -r requirements.txt
1621
# command to run tests
17-
script: py.test
22+
script: ./coverage.sh

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Terraform Validate
22

3-
[![Build Status](https://travis-ci.org/elmundio87/terraform_validate.svg?branch=master)](https://travis-ci.org/elmundio87/terraform_validate)
3+
Linux: [![Linux Build Status](https://travis-ci.org/elmundio87/terraform_validate.svg?branch=master)](https://travis-ci.org/elmundio87/terraform_validate)
4+
5+
Windows: [![Windows Build status](https://ci.appveyor.com/api/projects/status/36dwtekc8tvrny24/branch/master?svg=true)](https://ci.appveyor.com/project/elmundio87/terraform-validate/branch/master)
46

57
A python package that assists in the enforcement of user-defined standards in Terraform.
68

appveyor.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
environment:
2+
3+
matrix:
4+
5+
# For Python versions available on Appveyor, see
6+
# http://www.appveyor.com/docs/installed-software#python
7+
# The list here is complete (excluding Python 2.6, which
8+
# isn't covered by this document) at the time of writing.
9+
10+
- PYTHON: "C:\\Python27"
11+
- PYTHON: "C:\\Python33"
12+
- PYTHON: "C:\\Python34"
13+
- PYTHON: "C:\\Python35"
14+
- PYTHON: "C:\\Python27-x64"
15+
- PYTHON: "C:\\Python33-x64"
16+
DISTUTILS_USE_SDK: "1"
17+
- PYTHON: "C:\\Python34-x64"
18+
DISTUTILS_USE_SDK: "1"
19+
- PYTHON: "C:\\Python35-x64"
20+
21+
install:
22+
- "%PYTHON%\\python.exe -m pip install unittest2 pytest coverage^<4"
23+
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
24+
25+
build: off
26+
27+
test_script:
28+
- "%PYTHON%\\python.exe -m coverage run --source terraform_validate -m py.test"
29+
- "%PYTHON%\\python.exe -m coverage report --show-missing"

coverage.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
py.test --cov=terraform_validate --cov-report=term-missing
1+
#!/usr/bin/env bash
2+
coverage run --source terraform_validate -m py.test
3+
ret=$?
4+
coverage report --show-missing
5+
exit $ret

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyhcl==0.2.1
1+
pyhcl==0.2.2

0 commit comments

Comments
 (0)