-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
47 lines (38 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
44
45
46
47
language: python
sudo: false
env:
global:
- OPENBLAS_NUM_THREADS=1
- OMP_NUM_THREADS=1
- MKL_NUM_THREADS=1
matrix:
include:
# Unit tests
- os: linux
env: TESTSUITE=unittests.sh PYTHON_VERSION="3.6" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
- os: linux
env: TESTSUITE=unittests.sh PYTHON_VERSION="3.7" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
cache:
directories:
- $HOME/.cache/pip
- $HOME/download
pip: true
git:
depth: 5
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
before_install:
- wget $MINICONDA_URL -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- if [[ `which conda` ]]; then echo 'Conda installation successful'; else exit 1; fi
- conda create -n testenv --yes python=$PYTHON_VERSION pip wheel pytest gxx_linux-64 gcc_linux-64 swig
- source activate testenv
- chmod +x ci_scripts/unittests.sh
- if [ $PYTHON_VERSION == '3.5' ]; then pip install 'numpy>=1.9.0,<=1.18.4'; fi
install:
- pip install pep8 codecov mypy flake8 pytest-cov
- cat requirements/main.txt | xargs -n 1 -L 1 pip install
- pip install .[all]
script:
- ci_scripts/$TESTSUITE