Skip to content
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
12b337a
MNT add cron builds for loky, joblib, distributed
pierreglaser Jan 24, 2019
8e9bb45
FIX add semicolons
pierreglaser Jan 25, 2019
43ad1d6
last semicolon
pierreglaser Jan 25, 2019
61e410f
DOC add comment about travis's integration tests
pierreglaser Jan 25, 2019
9e457ae
CLN check on PROJECT rather than TRAVIS_EVENT_TYPE
pierreglaser Jan 25, 2019
bb9e327
TST temporary remove the cron condition
pierreglaser Jan 25, 2019
2be1fcd
manually catch pytest exit code
pierreglaser Jan 28, 2019
04dd384
run distributed tests on a full virtual machine
pierreglaser Jan 28, 2019
392227c
re-create distributed exact test environment
pierreglaser Jan 28, 2019
500de3e
use python 3.6 for distributed
pierreglaser Jan 28, 2019
33c4bbe
add bokeh to distributed dependencies
pierreglaser Jan 28, 2019
57b1d66
upgrade ubuntu because of openssl version
pierreglaser Jan 28, 2019
1a1def6
debug using my local fork
pierreglaser Jan 28, 2019
84236a3
remove python3.6 dependency, upgrade to xenial
pierreglaser Jan 28, 2019
98640fb
test only the failing tests
pierreglaser Jan 28, 2019
4efe205
python 3.7
pierreglaser Jan 28, 2019
bcdd785
skip the two failing tests
pierreglaser Jan 28, 2019
8f23253
use pytest_args
pierreglaser Jan 28, 2019
eeb82f0
escape quotes properly
pierreglaser Jan 28, 2019
a783d64
another quote try
pierreglaser Jan 28, 2019
fb68703
yet another try
pierreglaser Jan 28, 2019
718f594
debug
pierreglaser Jan 28, 2019
e9b3644
WIP
pierreglaser Jan 28, 2019
84ec4cf
WIP
pierreglaser Jan 28, 2019
caf5aa6
WIP
pierreglaser Jan 28, 2019
aa7d3f0
WIP
pierreglaser Jan 28, 2019
cdd9c2f
WIP
pierreglaser Jan 28, 2019
298d237
WIP
pierreglaser Jan 28, 2019
96eb36b
WIP
pierreglaser Jan 28, 2019
acce4e6
WIP
pierreglaser Jan 28, 2019
71d041d
WIP
pierreglaser Jan 28, 2019
002a0b3
filter out openssl tests
pierreglaser Jan 28, 2019
1f5ebe4
ci trigger
pierreglaser Jan 28, 2019
1b41594
last simplification attempt
pierreglaser Jan 29, 2019
a6551a3
make sure exit codes are retrieved properly
pierreglaser Jan 29, 2019
0564dd1
go back to manually catch exit code
pierreglaser Jan 29, 2019
a3c86bb
ci-downstream use flags in commit_messages instead of cron jobs
pierreglaser Jan 29, 2019
cacd7a0
[ci skip] use travis conventions to trigger ci
pierreglaser Jan 29, 2019
95c7429
[ci loky] trigger loky's ci
pierreglaser Jan 29, 2019
f86a03c
ci loky make sure this does not trigger ci
pierreglaser Jan 29, 2019
1ae09c8
[ci distributed] trigger distributed test suite
pierreglaser Jan 29, 2019
59bba18
ci distributed make sure ci is not triggered
pierreglaser Jan 29, 2019
5b468cd
[ci downstream] trigger all integration builds
pierreglaser Jan 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,33 @@ matrix:
python: 3.5
- os: linux
python: 2.7
- os: linux
# The PROJECT environment variable refers to a downstream project that
# depends on cloudpickle (for example: distributed, joblib, loky). For
# each project, a matrix item is created, that will run the $PROJECT
# test suite with the latest cloudpickle, to check for breaking changes
# introduced by cloudpickle.
# Side note: for distributed, the pytest major version is constrained to
# 3 because running it's test suite with pytest 4 fails for now. Also,
# two failing tests related to openssl and not to cloudpickle are
# skipped
python: 3.7
sudo: required
env: PROJECT=distributed
TEST_REQUIREMENTS="pytest==3.6 numpy pandas mock bokeh"
PROJECT_URL=https://github.com/dask/distributed.git
PYTEST_ARGS="-k not test_connection_args and not test_listen_args"
if: commit_message =~ /(\[ci downstream\]|\[ci distributed\])/
- os: linux
env: PROJECT=loky TEST_REQUIREMENTS="pytest psutil"
PROJECT_URL=https://github.com/tomMoral/loky.git
python: 3.7
if: commit_message =~ /(\[ci downstream\]|\[ci loky\])/
- os: linux
env: PROJECT=joblib TEST_REQUIREMENTS="pytest numpy distributed"
PROJECT_URL=https://github.com/joblib/joblib.git
python: 3.7
if: commit_message =~ /(\[ci downstream\]|\[ci joblib\])/

before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
Expand All @@ -34,6 +61,18 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then
pip install numpy scipy;
fi
- if [[ $PROJECT != "" ]]; then
pip install $TEST_REQUIREMENTS;
pushd ..;
git clone $PROJECT_URL;
if [[ $PROJECT == "joblib" ]]; then
pushd joblib/joblib/externals;
source vendor_cloudpickle.sh ../../../cloudpickle;
popd;
fi;
pip install ./$PROJECT;
popd;
fi
- pip list
before_script:
# stop the build if there are Python syntax errors or undefined names
Expand All @@ -43,6 +82,22 @@ before_script:
- python ci/install_coverage_subprocess_pth.py
script:
- COVERAGE_PROCESS_START="$TRAVIS_BUILD_DIR/.coveragerc" PYTHONPATH='.:tests' pytest -r s
- |
if [[ $PROJECT != "" ]]; then
pushd ../$PROJECT
# pytest hangs if given an empty quoted string (it will happen
# if PYTEST_ARGS was not defined) so we have to split the cases.
if [[ "$PYTEST_ARGS" != "" ]]; then
pytest -vl "$PYTEST_ARGS"
else
pytest -vl
fi
TEST_RETURN_CODE=$?
popd
if [[ "$TEST_RETURN_CODE" != "0" ]]; then
exit $TEST_RETURN_CODE
fi
fi
after_success:
- coverage combine --append
- codecov