forked from stackdio/stackdio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
61 lines (51 loc) · 1.46 KB
/
.travis.yml
File metadata and controls
61 lines (51 loc) · 1.46 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
language: python
python:
- "2.7"
- "3.3"
- "3.4"
cache:
directories:
- $HOME/.cache/pip
# Set up our environment
env:
DJANGO_SETTINGS_MODULE: stackdio.server.settings.testing
# So that we get a docker container
sudo: false
# Make sure our pip install works
addons:
apt:
packages:
- swig
## Customize dependencies
install:
- npm install -g bower
- bower install
- pip install -U pip
- pip install -U wheel
- pip install -U -e .[testing]
## Customize test commands
before_script:
- 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/travis/.stackdio
- cp tests/config-travis /home/travis/.stackdio/config
script:
- py.test --cov=stackdio stackdio
- python manage.py build_ui
# Only build artifacts on success
after_success:
- coveralls
- export STACKDIO_VERSION=`python setup.py --version`
- python setup.py sdist
- python setup.py bdist_wheel
deploy:
provider: releases
api_key:
secure: dJIj78Kl5nvtE2OpYl2I4ICEw20kLVXyr+eGOcWVV3kbU+PS6zKqOtLM+sGuVYNSbqWviRR9um6zbzjqS3S2wjFOdeStMogo19EKepSc0S97t6BkmbH0KooFuFah/YFOzLu+UBzDa3EETvgd1/988Eoojr0Ea2kZRJcvx/S0vDI=
file:
- dist/stackdio-server-${STACKDIO_VERSION}.tar.gz
- dist/stackdio_server-${STACKDIO_VERSION}-py2-none-any.whl
skip_cleanup: true
on:
tags: true
repo: stackdio/stackdio