forked from mrocklin/distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (60 loc) · 1.88 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: python
sudo: false
services:
- docker
matrix:
fast_finish: true
include:
- python: "2.7"
- python: "3.4"
- python: "3.5"
env: HDFS=false
- python: "3.5"
env: HDFS=true
sudo: true
dist: trusty
before_install:
- |
if [[ $HDFS == true ]]; then
pwd
pushd continuous_integration
docker build -t distributed-hdfs .
popd
docker run -d -p 8020:8020 -p 50070:50070 -v $(pwd):/distributed distributed-hdfs
export CONTAINER_ID=$(docker ps -l -q)
sleep 60 # Wait for namenode and datanode
fi;
install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
# Install dependencies
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install pytest coverage tornado toolz dill futures dask ipywidgets psutil bokeh
- pip install git+https://github.com/blaze/dask.git --upgrade
# Install distributed
- python setup.py install
- |
if [[ $HDFS == true ]]; then
pwd
docker exec -it $CONTAINER_ID python setup.py install
fi;
script:
- |
if [[ $HDFS == true ]]; then
pwd
docker exec -it $CONTAINER_ID py.test distributed/tests/test_hdfs.py --verbose
elif [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then
coverage run $(which py.test) distributed -m "not avoid_travis" \
--doctest-modules --verbose;
else
py.test -m "not avoid_travis" distributed --verbose;
fi;
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then coverage report --show-missing; pip install coveralls ; coveralls ; fi
notifications:
email: false