diff --git a/.travis.yml b/.travis.yml index 81ac11d56..769b30770 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,25 +4,41 @@ env: global: PIP_PREFER_BINARY=true # https://github.com/numba/llvmlite/issues/471 -python: - - "2.7" -# - "3.3" # failed due to setuptool version -# - "3.4" # failed due to numba (llvmlite) - - "3.5" - - "3.5-dev" # 3.5 development branch - - "3.6" - - "3.6-dev" # 3.6 development branch +matrix: + include: + + - os: linux + sudo: required + services: docker + python: '2.7' + + # - "3.3" # failed due to setuptool version + # - "3.4" # failed due to numba (llvmlite) + + - os: linux + sudo: required + services: docker + python: '3.5' + + - os: linux + sudo: required + services: docker + python: '3.6' + + - os: linux + dist: xenial + sudo: required + services: docker + python: '3.7' + install: - pip install --upgrade pip - pip install -r requirements_ci.txt - - pip install pytest - - pip install pytest-cov - - pip install coveralls -# command to run tests script: - pytest --cov=pyod/ + # Show the 20 slowest running tests + - pytest --cov=pyod/ --durations=20 after_success: - coveralls @@ -32,4 +48,4 @@ notifications: recipients: - yzhao062@gmail.com on_success: never # default: change - on_failure: always # default: always \ No newline at end of file + on_failure: always # default: always diff --git a/requirements_ci.txt b/requirements_ci.txt index 267a6bf09..04cb2fe9a 100644 --- a/requirements_ci.txt +++ b/requirements_ci.txt @@ -7,4 +7,8 @@ numba>=0.35 scipy==1.1.0 scikit_learn>=0.19.1 tensorflow -xgboost>=0.7 \ No newline at end of file +xgboost>=0.7 +pytest>=3.6 +pytest-cov +coveralls +