Skip to content

Commit

Permalink
Add Python 3.7 tests in Circle CI (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkza authored and phobologic committed Mar 12, 2019
1 parent 49295ce commit 1f1df37
Showing 1 changed file with 24 additions and 45 deletions.
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

0 comments on commit 1f1df37

Please sign in to comment.