]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Add .travis.yml file
authorDaniel Axtens <dja@axtens.net>
Tue, 9 Aug 2016 04:27:41 +0000 (14:27 +1000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Wed, 7 Sep 2016 20:51:58 +0000 (21:51 +0100)
This automatically runs the tests (except the browser ones) via tox.

Tested on my github account. This will require some setup on the GitHub
end: Travis will need to be turned on for the project, and ideally a
badge added to the readme so we can see the build status.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Stephen Finucane <stephenfinucane@hotmail.com>
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..9edd3e1
--- /dev/null
@@ -0,0 +1,31 @@
+language: python
+python: 3.5
+
+services:
+  - mysql
+
+env:
+  global:
+    - PW_TEST_DB_USER=travis
+    - PW_TEST_DB_PASS=""
+    - PW_SKIP_BROWSER_TESTS=yes
+  matrix:
+    - TOX_ENV=py27-django16
+    - TOX_ENV=py27-django17
+    - TOX_ENV=py27-django18
+    - TOX_ENV=py27-django19
+    - TOX_ENV=py34-django16
+    - TOX_ENV=py34-django17
+    - TOX_ENV=py34-django18
+    - TOX_ENV=py34-django19
+    - TOX_ENV=py35-django18
+    - TOX_ENV=py35-django19
+
+before_script:
+  - mysql -e 'create database patchwork character set utf8;'
+
+install:
+  - pip install tox
+
+script:
+  - tox -e $TOX_ENV