forked from scikit-learn-contrib/scikit-dimension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 1.81 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
dist: trusty
sudo: false
jobs:
include:
- name: Python 3.7 on Ubuntu Linux 18.04
os: linux
dist: bionic
language: python
python: '3.7'
- name: Python 3.8 on Ubuntu Linux 18.04
os: linux
dist: bionic
language: python
python: '3.8'
# See https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci
# for macos config peculiarities.
- name: Python 3.7 on MacOS X (xcode 10.3)
os: osx
language: shell
osx_image: xcode10.3 # Python 3.7
- name: Python 3.7 on MacOS X (xcode 11.3)
os: osx
language: shell
osx_image: xcode11.3 # Python 3.7.5
cache:
directories:
- $HOME/.cache/pip
install:
# install miniconda
#- deactivate
- |
if [[ "$TRAVIS_OS_NAME" == 'linux' ]] && [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then
echo "WARNING: using Python2"
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == 'osx' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- MINICONDA_PATH=$HOME/miniconda
- chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
- export PATH=$MINICONDA_PATH/bin:$PATH
- conda update -y conda
# create the testing environment
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION pip --yes
- conda activate testenv
- conda install -y numpy scipy scikit-learn nose numba matplotlib pytest pytest-cov
- pip install codecov
- pip install .
script:
- pytest -v --cov=skdim --ignore=skdim/tests/test_results.py --pyargs skdim
after_success:
- codecov