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

Convert to temple #50

Merged
merged 15 commits into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
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
14 changes: 0 additions & 14 deletions .bumpversion.cfg

This file was deleted.

90 changes: 90 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
version: 2
aliases:
- &docker_image circleci/python:3.6-stretch
- &dependencies
name: Make virtualenv and install dependencies
command: |
python3 -m venv ~/venv
echo ". ~/venv/bin/activate" >> $BASH_ENV
source $BASH_ENV
make dependencies
- &test_boilerplate
environment:
TEST_REPORTS: /tmp/test-reports
steps:
- checkout
- run:
name: Install postgres
command: |
sudo apt-get update && \
sudo apt-get install \
postgresql-9.6
- run:
<<: *dependencies
- run: make test
- store_test_results:
path: /tmp/test-reports
- store_artifacts:
path: /tmp/test-reports
jobs:
temple_check:
docker:
- image: *docker_image
steps:
- checkout
- run:
<<: *dependencies
- run: temple update --check
lint:
docker:
- image: *docker_image
steps:
- checkout
- run:
<<: *dependencies
- run: make validate
test_py35:
docker:
- image: circleci/python:3.5-stretch
<<: *test_boilerplate
test_py36:
docker:
- image: circleci/python:3.6-stretch
<<: *test_boilerplate
test_py37:
docker:
- image: circleci/python:3.7-stretch
<<: *test_boilerplate
deploy:
docker:
- image: *docker_image
steps:
- checkout
- add_ssh_keys:
fingerprints:
- "af:a6:bf:48:f0:08:d6:0f:19:4f:fd:10:f2:9d:50:2c"
- run:
<<: *dependencies
- run: pip install -q -r deploy_requirements.txt
- run: python3 deploy.py prod

workflows:
version: 2
checks_and_deploy:
jobs:
- temple_check
- lint
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- test_py34 is missing here, which causes deploy's requirements to fail below.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or if this isn't Python 3.4 compatible, delete that job.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that seems to have done it

- test_py35
- test_py36
- test_py37
- deploy:
requires:
- temple_check
- lint
- test_py35
- test_py36
- test_py37
filters:
branches:
only:
- master
12 changes: 0 additions & 12 deletions .coveragerc

This file was deleted.

15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yaml,yml}]
indent_size = 2

[makefile]
indent_style = tab
Loading