Skip to content

Commit

Permalink
Merge pull request #42 from mattsb42-aws/dev-20
Browse files Browse the repository at this point in the history
adding AppVeyor build configuration and badge
  • Loading branch information
mattsb42-aws committed Jan 17, 2018
2 parents 677d51d + 53ca52b commit be6adb4
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ aws-encryption-sdk
.. image:: https://travis-ci.org/awslabs/aws-encryption-sdk-python.svg?branch=master
:target: https://travis-ci.org/awslabs/aws-encryption-sdk-python

.. image:: https://ci.appveyor.com/api/projects/status/v42snaej4lavd5lm/branch/master?svg=true
:target: https://ci.appveyor.com/project/mattsb42-aws/aws-encryption-sdk-python-m2mgl

The AWS Encryption SDK for Python provides a fully compliant, native Python implementation of the `AWS Encryption SDK`_.

The latest full documentation can be found at `Read the Docs`_.
Expand Down
95 changes: 95 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# https://packaging.python.org/guides/supporting-windows-using-appveyor/

environment:

matrix:
# The only test we perform on Windows are our actual code tests. All linting, static
# analysis, etc are only run on Linux (via Travis CI).

# Python 2.7
- PYTHON: "C:\\Python27"
TOXENV: "py27-local"
- PYTHON: "C:\\Python27"
TOXENV: "py27-integ"
- PYTHON: "C:\\Python27"
TOXENV: "py27-accept"
- PYTHON: "C:\\Python27"
TOXENV: "py27-examples"
- PYTHON: "C:\\Python27-x64"
TOXENV: "py27-local"
- PYTHON: "C:\\Python27-x64"
TOXENV: "py27-integ"
- PYTHON: "C:\\Python27-x64"
TOXENV: "py27-accept"
- PYTHON: "C:\\Python27-x64"
TOXENV: "py27-examples"

# Python 3.4
- PYTHON: "C:\\Python34"
TOXENV: "py34-local"
- PYTHON: "C:\\Python34"
TOXENV: "py34-integ"
- PYTHON: "C:\\Python34"
TOXENV: "py34-accept"
- PYTHON: "C:\\Python34"
TOXENV: "py34-examples"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
TOXENV: "py34-local"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
TOXENV: "py34-integ"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
TOXENV: "py34-accept"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
TOXENV: "py34-examples"

# Python 3.5
- PYTHON: "C:\\Python35"
TOXENV: "py35-local"
- PYTHON: "C:\\Python35"
TOXENV: "py35-integ"
- PYTHON: "C:\\Python35"
TOXENV: "py35-accept"
- PYTHON: "C:\\Python35"
TOXENV: "py35-examples"
- PYTHON: "C:\\Python35-x64"
TOXENV: "py35-local"
- PYTHON: "C:\\Python35-x64"
TOXENV: "py35-integ"
- PYTHON: "C:\\Python35-x64"
TOXENV: "py35-accept"
- PYTHON: "C:\\Python35-x64"
TOXENV: "py35-examples"

# Python 3.6
- PYTHON: "C:\\Python36"
TOXENV: "py36-local"
- PYTHON: "C:\\Python36"
TOXENV: "py36-integ"
- PYTHON: "C:\\Python36"
TOXENV: "py36-accept"
- PYTHON: "C:\\Python36"
TOXENV: "py36-examples"
- PYTHON: "C:\\Python36-x64"
TOXENV: "py36-local"
- PYTHON: "C:\\Python36-x64"
TOXENV: "py36-integ"
- PYTHON: "C:\\Python36-x64"
TOXENV: "py36-accept"
- PYTHON: "C:\\Python36-x64"
TOXENV: "py36-examples"

install:
# Prepend newly installed Python to the PATH of this build
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check the Python version to verify the correct version was installed
- "python --version"
- "python -m pip install wheel tox"

build: off

test_script:
- "tox"
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

def test_cycle_file():
cmk_arn = get_cmk_arn()
_handle, filename = tempfile.mkstemp()
handle, filename = tempfile.mkstemp()
with open(filename, 'wb') as f:
f.write(os.urandom(1024))
try:
Expand All @@ -42,4 +42,5 @@ def test_cycle_file():
for f in new_files:
os.remove(f)
finally:
os.close(handle)
os.remove(filename)
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@


def test_cycle_file():
_handle, filename = tempfile.mkstemp()
handle, filename = tempfile.mkstemp()
with open(filename, 'wb') as f:
f.write(os.urandom(1024))
try:
new_files = cycle_file(source_plaintext_filename=filename)
for f in new_files:
os.remove(f)
finally:
os.close(handle)
os.remove(filename)

0 comments on commit be6adb4

Please sign in to comment.