forked from pygraphviz/pygraphviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (60 loc) · 1.31 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
60
61
62
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "pypy3"
addons:
apt:
packages:
- graphviz
matrix:
include:
- os: osx
osx_image: xcode12
language: generic
env: TRAVIS_PYTHON_VERSION=3.6
- os: osx
osx_image: xcode12
language: generic
env: TRAVIS_PYTHON_VERSION=3.7
- os: osx
osx_image: xcode12
language: generic
env: TRAVIS_PYTHON_VERSION=3.8
allow_failures:
before_install:
# create new empty venv
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
uname -a;
printenv;
brew install graphviz;
git clone https://github.com/matthew-brett/multibuild;
source multibuild/osx_utils.sh;
get_macpython_environment $TRAVIS_PYTHON_VERSION venv;
else
virtualenv -p python ~/venv;
source ~/venv/bin/activate;
fi
install:
# install required packages
- pip install --upgrade pip
- pip install -r requirements/test.txt
# install pygraphviz
- printenv PWD
- pip install -e .
# show what's installed
- python --version
- pip list
script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
pytest -vv;
else
pytest -vv --cov=pygraphviz;
fi
- python setup.py bdist_wheel
after_success:
- if [[ "${TRAVIS_OS_NAME}" != "osx" ]]; then
coveralls;
fi