forked from Material-MADS/mads-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle.yml
More file actions
66 lines (62 loc) · 2.57 KB
/
circle.yml
File metadata and controls
66 lines (62 loc) · 2.57 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
55
56
57
58
59
60
61
62
63
64
65
66
#=================================================================================================
# Project: CADS/MADS - An Integrated Web-based Visual Platform for Materials Informatics
# Hokkaido University (2018)
# Last Update: Q3 2023
# ________________________________________________________________________________________________
# Authors: Mikael Nicander Kuwahara (Lead Developer) [2021-]
# Jun Fujima (Former Lead Developer) [2018-2021]
# ________________________________________________________________________________________________
#=================================================================================================
#-------------------------------------------------------------------------------------------------
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
#-------------------------------------------------------------------------------------------------