forked from stackdio/stackdio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
38 lines (32 loc) · 1015 Bytes
/
circle.yml
File metadata and controls
38 lines (32 loc) · 1015 Bytes
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
machine:
python:
version: '2.7'
environment:
DJANGO_SETTINGS_MODULE: 'stackdio.server.settings.testing'
## Customize dependencies
dependencies:
override:
- bower install
- pip install -U pip
- pip install -U wheel
- pip install -U -e .[testing]
## Customize test commands
test:
pre:
- pep8 stackdio/ && echo 'Finished PEP-8 Check Cleanly' || echo 'Finished PEP-8 Check With Errors'
- pylint stackdio/ && echo 'Finished Pylint Check Cleanly' || echo 'Finished Pylint Check With Errors'
- mkdir /home/ubuntu/.stackdio
- cp tests/config /home/ubuntu/.stackdio/config
override:
- py.test --cov=stackdio --cov-report=html --junit-xml=tests.xml stackdio
post:
- mv tests.xml $CIRCLE_TEST_REPORTS/stackdio-tests.xml
- mv htmlcov $CIRCLE_ARTIFACTS/coverage
deployment:
artifact:
branch: /.*/
commands:
- python manage.py build_ui
- python setup.py sdist
- python setup.py bdist_wheel
- mv dist/ $CIRCLE_ARTIFACTS/dist/