summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorbendikro <bendikro@gmail.com>2014-09-21 16:37:29 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2014-09-25 14:11:51 +0100
commit66f2739be7cda3d610095cb8c1b1c9edbf006967 (patch)
treec71a980b5f69a6af4b4769e9937d3658154b0574 /.travis.yml
parent8dc9a0773cf237033a00a936385257d6481e1715 (diff)
downloaddeluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.tar.gz
deluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.tar.bz2
deluge-66f2739be7cda3d610095cb8c1b1c9edbf006967.zip
Added .travis.yml (for travis-ci) and tox.ini files
Targets: * Runs the unit-tests for python 2.7 * Tests unit-test coverage * Try to build docs * Code style checks: * flake8 * isort Codes changes: * Fixed tests for httpdownloader (using tmp dir) * Implemented a couple of tests for Stats plugin but they fail to run on travis Issues: * Can't get py26 to work because of installing libtorrent through apt and the option system_site_packages fails for 2.6.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..55b630c1c
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,35 @@
+language: python
+
+python:
+# - "2.6"
+ - "2.7"
+
+# command to install dependencies
+install:
+ - pip install tox
+ - lsb_release -a
+ - sudo add-apt-repository ppa:deluge-team/ppa -y
+ - sudo apt-get update
+ - sudo apt-get install python-libtorrent
+
+script:
+ - tox
+
+env:
+ - TOX_ENV=pydef
+ - TOX_ENV=plugins
+ - TOX_ENV=flake8
+ - TOX_ENV=flake8-complexity
+ - TOX_ENV=isort
+ - TOX_ENV=docs
+ - TOX_ENV=testcoverage
+
+virtualenv:
+ system_site_packages: true
+
+before_script:
+ - export PYTHONPATH=$PYTHONPATH:$PWD
+ - python -c "import libtorrent as lt; print lt.version"
+
+script:
+ - tox -e $TOX_ENV