forked from takahashigroup/CADS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
54 lines (51 loc) · 1.72 KB
/
circle.yml
File metadata and controls
54 lines (51 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
machine: # remeber to update those!
python:
version: 3.6.0
node:
version: 6.1.0
environment:
# makes default virtualenv be ignored by pipenv avoiding dependencies conflict
PIPENV_IGNORE_VIRTUALENVS: True
dependencies:
pre:
# this updates git-lfs to make pre-commit large files check hook work properly
# more details in https://github.com/pre-commit/pre-commit-hooks/issues/252
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
- sudo apt-get install git-lfs --upgrade
post:
- pip install requests pipenv --upgrade
- pipenv install --dev
test:
override:
- npm run build
- npm run lint
# style check
- pipenv run prospector
# security checks
- pipenv run bandit -r .
- pipenv check
# imports check
- pipenv run isort **/*.py --check-only
# pre-commit additional checks
- SKIP=prospector,isort,eslint,missing-migrations pipenv run pre-commit run --all-files
- >-
DJANGO_SETTINGS_MODULE=madsapp.settings.local_base
pipenv run python manage.py has_missing_migrations --ignore authtools;
- >-
DJANGO_SETTINGS_MODULE=madsapp.settings.production
SECRET_KEY=$(python -c 'import uuid; print(uuid.uuid4().hex + uuid.uuid4().hex)')
DATABASE_URL='sqlite:///'
ALLOWED_HOSTS='.example.org'
SENDGRID_USERNAME='test'
SENDGRID_PASSWORD='test'
REDIS_URL='redis://'
pipenv run python manage.py check --deploy
- pipenv run coverage run manage.py test
- npm run test
post:
- pipenv run coverage html -d $CIRCLE_ARTIFACTS
# This is necessary for the boilerplate's CI. You can remove these lines
general:
branches:
ignore:
- boilerplate-release