forked from biolab/orange-bio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 888 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
matrix:
include:
- python: "2.7"
env: TESTSUITES=orangecontrib.bio.tests
- python: "3.4"
env: TESTSUITES=orangecontrib.bio.tests
- python: "3.5"
env: TESTSUITES=orangecontrib.bio.tests BUILD_DOC=1
cache:
pip: true
install:
- python -m pip install 'pip>=9' 'setuptools>=25'
- pip --version
- pip list --format=legacy
- python setup.py clean --all sdist -d dist
- name=$(python setup.py --name)
- version=$(python setup.py --version)
- pip install dist/${name}-${version}.tar.gz
script:
- testdir=$(mktemp -d ./testdir.XXX)
- pushd "${testdir}"
- for testmod in ${TESTSUITES}; do python -c "import ${testmod}"; done
- python -m unittest -v ${TESTSUITES}
- popd; rm -r "${testdir}"
- if [[ ${BUILD_DOC} ]]; then pip install -r doc/requirements.txt; fi
- if [[ ${BUILD_DOC} ]]; then (cd doc; make html ); fi