forked from vossjo/gplearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (49 loc) · 1.71 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
language: python
env:
matrix:
- PYTHON="3.5" SKLEARN="LATEST"
- PYTHON="3.6" SKLEARN="LATEST"
- PYTHON="3.7" SKLEARN="LATEST" JOBLIB="0.13.0"
- PYTHON="3.8" SKLEARN="0.22.1"
- PYTHON="3.8" SKLEARN="LATEST" COVERAGE="true"
install:
- set -e
- deactivate
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
- bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n testenv -y python=$PYTHON pip pytest pandas cython
- source activate testenv
- if [[ "$SKLEARN" == "LATEST" ]]; then
conda install scikit-learn joblib;
else
conda install scikit-learn=$SKLEARN joblib=$JOBLIB;
fi
- if [[ "$PYTHON" == "3.5" ]]; then
python -c "import joblib; print('joblib %s' % joblib.__version__)";
python -c "import sklearn; print('sklearn %s' % sklearn.__version__)";
pip install --upgrade scikit-learn joblib;
fi
- if [[ "$COVERAGE" == "true" ]]; then
pip install pytest-cov coveralls;
fi
- python --version
- python -c "import numpy; print('numpy %s' % numpy.__version__)"
- python -c "import scipy; print('scipy %s' % scipy.__version__)"
- python -c "import joblib; print('joblib %s' % joblib.__version__)"
- python -c "import sklearn; print('sklearn %s' % sklearn.__version__)"
- python setup.py install
script:
- set -e
- if [[ "$COVERAGE" == "true" ]]; then
pytest -v --cov gplearn;
else
pytest -v gplearn;
fi
after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; fi