-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
44 lines (44 loc) · 1.05 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
language: python
os: linux
python:
- 3.6
- 3.7
- 3.8
matrix:
include:
- os: osx
language: generic
env: PYTHON=3.7.4
addons:
homebrew:
packages:
- openmpi
- pyenv-virtualenv
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv virtualenv venv
source /Users/travis/.pyenv/versions/3.7.4/envs/venv/bin/activate
fi
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get update
sudo apt-get install -y openmpi-bin libopenmpi-dev gcc
fi
install:
- pip install -r requirements-dev.txt
- pip install codecov
- pip install mpi4py
- pip install pycasso
- python setup.py build
- python setup.py develop
- pip install pytest-cov
script:
- flake8 pyuoi tests examples
- pytest --cov=./ tests
- sphinx-build -W -b html docs/source docs/build
after_success:
- codecov