Skip to content
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

Add Python 3.7 tests in Circle CI #711

Merged
merged 1 commit into from
Mar 12, 2019
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
69 changes: 24 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ workflows:
- functional-test-36:
requires:
- unit-test-36
- functional-test-27
- functional-test-35
- unit-test-37:
requires:
- lint
- functional-test-37:
requires:
- unit-test-37
- functional-test-36
- cleanup-functional-buckets:
requires:
- functional-test-27
- functional-test-35
- functional-test-36
- functional-test-37

jobs:
lint:
Expand All @@ -46,31 +53,30 @@ jobs:
unit-test-27:
docker:
- image: circleci/python:2.7
steps:
steps: &unit_test_steps
- checkout
- run: sudo python setup.py install
- run: sudo make test-unit

unit-test-35:
docker:
- image: circleci/python:3.5
steps:
- checkout
- run: sudo python setup.py install
- run: sudo make test-unit
steps: *unit_test_steps

unit-test-36:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo python setup.py install
- run: sudo make test-unit
steps: *unit_test_steps

unit-test-37:
docker:
- image: circleci/python:3.7
steps: *unit_test_steps

functional-test-27:
docker:
- image: circleci/python:2.7
steps:
steps: &functional_test_steps
- checkout
- run:
command: |
Expand All @@ -91,44 +97,17 @@ jobs:
functional-test-35:
docker:
- image: circleci/python:3.5
steps:
- checkout
- run:
command: |
git clone https://github.com/bats-core/bats-core.git
cd bats-core
git checkout v1.0.2
sudo ./install.sh /usr/local
bats --version
- run: sudo python setup.py install
- run:
command: |
export TERM=xterm
export AWS_DEFAULT_REGION=us-east-1
export STACKER_NAMESPACE=cloudtools-functional-tests-$CIRCLE_BUILD_NUM
export STACKER_ROLE=arn:aws:iam::459170252436:role/cloudtools-functional-tests-sta-FunctionalTestRole-1M9HFJ9VQVMFX
sudo -E make test-functional
steps: *functional_test_steps

functional-test-36:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
command: |
git clone https://github.com/bats-core/bats-core.git
cd bats-core
git checkout v1.0.2
sudo ./install.sh /usr/local
bats --version
- run: sudo python setup.py install
- run:
command: |
export TERM=xterm
export AWS_DEFAULT_REGION=us-east-1
export STACKER_NAMESPACE=cloudtools-functional-tests-$CIRCLE_BUILD_NUM
export STACKER_ROLE=arn:aws:iam::459170252436:role/cloudtools-functional-tests-sta-FunctionalTestRole-1M9HFJ9VQVMFX
sudo -E make test-functional
steps: *functional_test_steps

functional-test-37:
docker:
- image: circleci/python:3.7
steps: *functional_test_steps

cleanup-functional-buckets:
docker:
Expand Down