Skip to content

adding AppVeyor build configuration and badge #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)