summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.coveragerc18
-rw-r--r--.travis.yml25
2 files changed, 43 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..b09ff83
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,18 @@
+[run]
+branch = True
+source = .
+omit =
+ *tests*
+ *migrations*
+ *init*
+ local_settings.py
+ fossee_manim/apps.py
+ fossee_anime/settings.py
+ fossee_anime/wsgi.py
+
+
+[report]
+exclude_lines =
+ except ImportError:
+ raise NotImplementedError
+if __name__ == .__main__.: \ No newline at end of file
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