-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Resolve #622] Add official Python 3.7 support
Note that this commit suppressed DeprecationWarnings due to dependencies which have not yet updated their use of collections.abc. Add pyenv to CI: support multiple Python versions * Bump CI Docker image version (to 0.4) * Add pyenv to Docker image * Support py27, py36, py37 Fix CI interaction with moto 1.3.7. Works around getmoto/moto#1924 by ensuring garbage defaults are set in the environment. Update setup.py for Python3.7 support Add package requirements for testing on python3.7/win
- Loading branch information
Showing
9 changed files
with
63 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
aliases: | ||
- &docs-job | ||
docker: | ||
- image: cloudreach/sceptre-circleci:0.3 | ||
- image: cloudreach/sceptre-circleci:0.4 | ||
environment: | ||
REPOSITORY_PATH: "/home/circleci/docs" | ||
DEPLOYMENT_GIT_SSH: "[email protected]:Sceptre/docs.git" | ||
REPOSITORY_PATH: '/home/circleci/docs' | ||
DEPLOYMENT_GIT_SSH: '[email protected]:Sceptre/docs.git' | ||
steps: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "80:24:c0:40:28:36:f1:80:7f:fd:15:c3:09:cf:86:fc" | ||
- '80:24:c0:40:28:36:f1:80:7f:fd:15:c3:09:cf:86:fc' | ||
- attach_workspace: | ||
at: /home/circleci | ||
- run: | ||
|
@@ -24,22 +24,26 @@ version: 2 | |
jobs: | ||
build: | ||
docker: | ||
- image: cloudreach/sceptre-circleci:0.3 | ||
- image: cloudreach/sceptre-circleci:0.4 | ||
steps: | ||
- checkout | ||
- run: | ||
name: 'Creating Virtualenv' | ||
command: virtualenv venv | ||
- restore_cache: | ||
key: sceptre-{{ .Environment.CACHE_VERSION }}-requirements-{{ arch }}-{{ checksum "requirements.txt" }} | ||
key: | ||
sceptre-{{ .Environment.CACHE_VERSION }}-requirements-{{ arch }}-{{ | ||
checksum "requirements.txt" }} | ||
- run: | ||
name: 'Installing Requirements' | ||
command: | | ||
. ./venv/bin/activate | ||
pip install -r requirements.txt | ||
pip install awscli | ||
- save_cache: | ||
key: sceptre-{{ .Environment.CACHE_VERSION }}-requirements-{{ arch }}-{{ checksum "requirements.txt" }} | ||
key: | ||
sceptre-{{ .Environment.CACHE_VERSION }}-requirements-{{ arch }}-{{ | ||
checksum "requirements.txt" }} | ||
paths: | ||
- venv | ||
- run: | ||
|
@@ -53,12 +57,14 @@ jobs: | |
- project | ||
lint-and-unit-tests: | ||
docker: | ||
- image: cloudreach/sceptre-circleci:0.3 | ||
- image: cloudreach/sceptre-circleci:0.4 | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci | ||
- restore_cache: | ||
key: sceptre-{{ .Environment.CACHE_VERSION }}-tox-requirements-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
key: | ||
sceptre-{{ .Environment.CACHE_VERSION }}-tox-requirements-{{ arch | ||
}}-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: 'Linting' | ||
command: | | ||
|
@@ -77,13 +83,15 @@ jobs: | |
- store_artifacts: | ||
path: build/pytest | ||
- save_cache: | ||
key: sceptre-{{ .Environment.CACHE_VERSION }}-tox-requirements-{{ arch }}-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
key: | ||
sceptre-{{ .Environment.CACHE_VERSION }}-tox-requirements-{{ arch | ||
}}-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
paths: | ||
- .tox | ||
integration-tests: | ||
parallelism: 2 | ||
docker: | ||
- image: cloudreach/sceptre-circleci:0.3 | ||
- image: cloudreach/sceptre-circleci:0.4 | ||
environment: | ||
AWS_DEFAULT_REGION: eu-west-1 | ||
steps: | ||
|
@@ -101,14 +109,12 @@ jobs: | |
- store_artifacts: | ||
path: build/behave | ||
|
||
deploy-docs-branch: | ||
*docs-job | ||
deploy-docs-tag: | ||
*docs-job | ||
deploy-docs-branch: *docs-job | ||
deploy-docs-tag: *docs-job | ||
|
||
deploy-pypi: | ||
docker: | ||
- image: cloudreach/sceptre-circleci:0.3 | ||
- image: cloudreach/sceptre-circleci:0.4 | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
2.7-dev | ||
3.6-dev | ||
3.7-dev |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tox] | ||
envlist = py27,py36 | ||
envlist = py27,py36,py37 | ||
|
||
[testenv] | ||
deps = -rrequirements.txt | ||
|