Skip to content

Commit

Permalink
Merge pull request #50 from CloverHealth/convert-to-temple
Browse files Browse the repository at this point in the history
Convert to temple
  • Loading branch information
multigl authored Aug 23, 2018
2 parents e16d35a + 7b09980 commit d295d22
Show file tree
Hide file tree
Showing 61 changed files with 1,634 additions and 595 deletions.
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
- 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

0 comments on commit d295d22

Please sign in to comment.