summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAkshen2019-04-12 11:29:32 +0530
committerAkshen2019-04-12 11:29:32 +0530
commitdcc14d1e80011be4cdf7f10f248be90e96471beb (patch)
tree24ab20f18f4d1dbdb27a9e1b9602202f61977858 /.travis.yml
parent2d99408252a23c4715c9fb456af38d2246b87ead (diff)
downloadFOSSEE_animations-dcc14d1e80011be4cdf7f10f248be90e96471beb.tar.gz
FOSSEE_animations-dcc14d1e80011be4cdf7f10f248be90e96471beb.tar.bz2
FOSSEE_animations-dcc14d1e80011be4cdf7f10f248be90e96471beb.zip
Add coverage and travis config files
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..6e1fb31
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,25 @@
+language: python
+
+python:
+ - "3.5"
+
+before_install:
+ - sudo apt-get update -qq
+ - "export DISPLAY=:99.0"
+ - "sh -e /etc/init.d/xvfb start"
+ - sleep 3 # give xvfb some time to start
+
+# command to install dependencies
+install:
+ - pip install -r requirements.txt
+
+# command to run tests and coverage
+script:
+ - python manage.py makemigrations
+ - python manage.py migrate
+ - coverage erase
+ - coverage run -p manage.py test -v2
+
+after_success:
+ - coverage combine
+ - coverage report \ No newline at end of file