diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..17906f729e8b9880b8aa7f566ef0f71b780978d6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python +python: + - "2.7" + - "3.5" +install: true +script: + - bash ./run-coveralls.sh +env: + - if [[$TRAVIS_PYTHON_VERSION = "2.7"]]; then PY_EXE=python2.7; else PY_EXE=python3.5; fi +after_success: + - coveralls \ No newline at end of file diff --git a/README.rst b/README.rst index e44fa5c0ae8991ac7c41822525c0ddae3a8ebc59..b9f9f04daf77549ea0fe483b68cdcf7286a570ec 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,9 @@ +.. image:: https://travis-ci.org/inducer/relate.svg + :target: https://travis-ci.org/inducer/relate + +.. image:: https://coveralls.io/repos/inducer/relate/badge.svg + :target: https://coveralls.io/r/inducer/relate + RELATE ====== diff --git a/run-coveralls.sh b/run-coveralls.sh new file mode 100644 index 0000000000000000000000000000000000000000..5db8c404e2c771d45681929204eea01e62d982c9 --- /dev/null +++ b/run-coveralls.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +source $(dirname $0)/run-tests-for-ci.sh + +$PIP install coveralls + +coverage run --source=. manage.py test test/ diff --git a/run-tests-for-ci.sh b/run-tests-for-ci.sh index 0d36dd9bff93e8185dfcd628d162ab8b2ebcd94d..1e477cae880f6f4941342304bca3ec2d7ef72eff 100644 --- a/run-tests-for-ci.sh +++ b/run-tests-for-ci.sh @@ -68,5 +68,4 @@ $PIP install -r req.txt cp local_settings.example.py local_settings.py -cd test -python ../manage.py test +python manage.py test test/