Skip to content

Commit

Permalink
chore: configure CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed Jul 21, 2019
1 parent 4e0849a commit e49f5a3
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 49 deletions.
12 changes: 12 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
engines:
pylint:
enabled: true
channel: "beta"
plugins:
- django
exclude_patterns:
- drbo/
- extras/
- hay/
- templates/
- vat2/
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: CVRyQQeNcAXkKuj6N1fktoExUsjTPxaKY
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ __pycache__
.vscode/
.ipynb_checkpoints
.env
htmlcov/
.coverage
.vscode/
staticfiles/
db.sqlite3
db.sqlite3
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dist: xenial
language: python
python:
- "3.7"
env:
global:
# codeclimate test reporter
- DJANGO_SETTINGS_MODULE=ethodoxy-api.settings.travis
- CC_TEST_REPORTER_ID=72991da2d7ef78bd3d75af56f061fa2831770c36d14baab7ad8b9ffd4adcfaf6
install:
- pip install pipenv
- pipenv install --skip-lock
- pipenv install --dev --skip-lock
script:
- coverage run manage.py test
after_success:
- coveralls
# codeclimate config
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
68 changes: 34 additions & 34 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Ethodoxy
# Ethodoxy API

[![Build Status](https://travis-ci.com/chidimo/Ethodoxy-API.svg?branch=develop)](https://travis-ci.com/chidimo/Ethodoxy-API)
[![Coverage Status](https://coveralls.io/repos/github/chidimo/Ethodoxy-API/badge.svg?branch=develop)](https://coveralls.io/github/chidimo/Ethodoxy-API?branch=develop)
[![Maintainability](https://api.codeclimate.com/v1/badges/a111cd63dfe6f15bd844/maintainability)](https://codeclimate.com/github/chidimo/Ethodoxy-API/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a111cd63dfe6f15bd844/test_coverage)](https://codeclimate.com/github/chidimo/Ethodoxy-API/test_coverage)

Catholic Orthodoxy in electronic format

Expand Down
12 changes: 0 additions & 12 deletions env.md

This file was deleted.

9 changes: 9 additions & 0 deletions ethodoxy-api/settings/travis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from .base import *
ENVIRONMENT_NAME, _ = os.path.splitext(os.path.basename(os.path.abspath(__file__)))

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'funnshopp.sqlite3',
}
}
15 changes: 14 additions & 1 deletion notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Notes

## Local `.env` variables

```.env
DEBUG=
DJANGO_SETTINGS_MODULE=
SECRET_KEY=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=587
ALLOWED_HOSTS=localhost, ethodoxy.herokuapp.com
DATABASE_URL=
DB_PASSWORD
```

## Migrations order

python manage.py makemigrations bible
Expand Down Expand Up @@ -63,4 +76,4 @@ Include footnotes and cross-references for haydock
# To scrap

1. <http://www.christianperfection.info/>
1. <https://web.archive.org/web/20180205153812/http://www.christianperfection.info/>
1. <https://web.archive.org/web/20180205153812/http://www.christianperfection.info/>

0 comments on commit e49f5a3

Please sign in to comment.