forked from aws/aws-sam-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate from Travis to AppVeyor for Linux builds (aws#1334)
- Loading branch information
Showing
6 changed files
with
56 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,69 @@ | ||
version: 1.0.{build} | ||
image: Visual Studio 2017 | ||
build: off | ||
image: | ||
- Ubuntu | ||
- Visual Studio 2017 | ||
|
||
environment: | ||
AWS_DEFAULT_REGION: us-east-1 | ||
SAM_CLI_DEV: 1 | ||
|
||
matrix: | ||
|
||
- PYTHON_HOME: "C:\\Python27-x64" | ||
PYTHON_VERSION: '2.7' | ||
PYTHON_VERSION: '2.7.16' | ||
PYTHON_ARCH: '32' | ||
|
||
- PYTHON_HOME: "C:\\Python36-x64" | ||
PYTHON_VERSION: '3.6' | ||
PYTHON_VERSION: '3.6.8' | ||
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_VERSION: '3.7.4' | ||
PYTHON_ARCH: '64' | ||
|
||
install: | ||
for: | ||
- | ||
matrix: | ||
only: | ||
- image: Visual Studio 2017 | ||
|
||
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" | ||
|
||
- | ||
matrix: | ||
only: | ||
- image: Ubuntu | ||
install: | ||
- sh: "JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" | ||
- sh: "PATH=$JAVA_HOME/bin:$PATH" | ||
- sh: "source ${HOME}/venv${PYTHON_VERSION}/bin/activate" | ||
- sh: "rvm use 2.5" | ||
|
||
# Upgrade setuptools, wheel and virtualenv | ||
- "python -m pip install --upgrade setuptools wheel virtualenv" | ||
# Install latest gradle | ||
- sh: "sudo apt-get -y remove gradle" | ||
- sh: "wget https://services.gradle.org/distributions/gradle-5.5-bin.zip -P /tmp" | ||
- sh: "sudo unzip -d /opt/gradle /tmp/gradle-*.zip" | ||
- sh: "PATH=/opt/gradle/gradle-5.5/bin:$PATH" | ||
|
||
# Create new virtual environment and activate it | ||
- "rm -rf venv" | ||
- "python -m virtualenv venv" | ||
- "venv\\Scripts\\activate" | ||
- "python -c \"import sys; print(sys.executable)\"" | ||
build_script: | ||
- "python -c \"import sys; print(sys.executable)\"" | ||
|
||
# Actually install SAM CLI's dependencies | ||
- "pip install -e \".[dev]\"" | ||
# 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" | ||
- "pytest --cov samcli --cov-report term-missing --cov-fail-under 95 tests/unit" | ||
- "flake8 samcli" | ||
- "flake8 tests\\unit tests\\integration" | ||
- "flake8 tests/unit tests/integration" | ||
- "pylint --rcfile .pylintrc samcli" | ||
|
||
# Runs only in Linux | ||
- sh: "pytest -vv tests/integration" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters