forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
55 lines (52 loc) · 1.7 KB
/
config.yml
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
version: 2
jobs:
backend:
docker:
- image: circleci/python:3.6.4
steps:
- checkout
- restore_cache:
keys:
- pip-packages-v1-{{ .Branch }}
- pip-packages-v1-
- run: pipenv install -e .[testing]
- save_cache:
paths:
- ~/.local/
key: pip-package-v1-{{ .Branch }}
- run: pipenv run flake8 wagtail
- run: pipenv run isort --check-only --diff --recursive wagtail
# Filter out known false positives, while preserving normal output and error codes.
# See https://github.com/motet-a/jinjalint/issues/18.
# And https://circleci.com/docs/2.0/configuration-reference/#default-shell-options.
- run:
shell: /bin/bash -e
command: pipenv run jinjalint --parse-only wagtail | grep -v 'welcome_page.html:6:70' | tee /dev/tty | wc -l | grep -q '0'
- run: DATABASE_NAME=wagtail.db pipenv run python -u runtests.py
frontend:
docker:
- image: circleci/node:8.11.3
steps:
- checkout
- restore_cache:
keys:
- node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- node-v1-{{ .Branch }}-
- node-v1-
- run: npm install --no-save
- save_cache:
paths:
- ~/project/node_modules/
key: node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- run: npm run lint:js
- run: npm run lint:css
- run: npm run test:unit:coverage -- --runInBand
- run: npm rebuild node-sass
- run: npm run dist
- run: bash <(curl -s https://codecov.io/bash) -F frontend
workflows:
version: 2
test:
jobs:
- backend
- frontend