Skip to content
Merged
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
48 changes: 48 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 1.0.{build}
image: Visual Studio 2017
build: off

environment:
AWS_DEFAULT_REGION: us-east-1
SAM_CLI_DEV: 1

matrix:
- PYTHON_HOME: "C:\\Python27-x64"
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'

- PYTHON_HOME: "C:\\Python36-x64"
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '64'

# Testing on both 32bit and 64bit Windows only for Latest Python version,
# because MSIs installers use Latest Python version
- PYTHON_HOME: "C:\\Python37"
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '32'

- PYTHON_HOME: "C:\\Python37-x64"
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '64'

install:

# Upgrade setuptools, wheel and virtualenv
- "python -m pip install --upgrade setuptools wheel virtualenv"

# Create new virtual environment and activate it
- "rm -rf venv"
- "python -m virtualenv venv"
- "venv\\Scripts\\activate"
- "python -c \"import sys; print(sys.executable)\""

# Actually install SAM CLI's dependencies
- "pip install -e \".[dev]\""

test_script:
- "pytest --cov samcli --cov-report term-missing --cov-fail-under 95 tests\\unit"
- "flake8 samcli"
- "flake8 tests\\unit tests\\integration"
- "pylint --rcfile .pylintrc samcli"