From: Daniel Axtens Date: Tue, 9 Aug 2016 04:27:41 +0000 (+1000) Subject: Add .travis.yml file X-Git-Tag: v2.0.0-rc1~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5212e82e24784a93f3094d74d21ace39d4e0b654;p=thirdparty%2Fpatchwork.git Add .travis.yml file 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 Signed-off-by: Stephen Finucane --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9edd3e1c --- /dev/null +++ b/.travis.yml @@ -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