forked from sinhrks/cesiumpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.25 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
language: python
env:
matrix:
- PYTHON=2.7 SHAPELY=true
- PYTHON=2.7 SHAPELY=false
- PYTHON=3.4 SHAPELY=true
- PYTHON=3.5 SHAPELY=true COVERAGE=true
- PYTHON=3.5 SHAPELY=false
install:
- if [[ "$PYTHON" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels pandas
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$PYTHON pip nose
- source activate test-environment
- if [[ "$SHAPELY" == "true" ]]; then
conda install numpy scipy pandas shapely fiona matplotlib;
fi
- python -m pip install flake8 python-coveralls coverage
- python setup.py install
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- nosetests --with-coverage --cover-package=cesiumpy
- flake8 --ignore E501 cesiumpy
after_success:
- if [ "$COVERAGE" ]; then
coveralls;
fi