forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.09 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
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "pypy"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get install -qq python-numpy python-scipy
- sudo apt-get install -qq python3-numpy python3-scipy
- sudo apt-get install -qq python-pygraphviz
- sudo apt-get install python-matplotlib
- sudo apt-get install python-pydot
- sudo apt-get install python-gdal
- pip install pyyaml --use-mirrors
- pip install pyparsing --use-mirrors
- pip install coveralls --use-mirrors
# command to install dependencies
# install: "pip install"
# command to run tests
script:
# Install networkx
- pip install .
# Move to new directory so that networkx is not imported from repository.
# We need the full installation path.
- cd
# Move into the installation path.
- cd `python -c "from __future__ import print_function;import networkx;import os;print(os.path.split(networkx.__file__)[0])"`
# Export current directory for logs.
- printenv PWD
# Run nosetests.
- nosetests -v --with-coverage --cover-erase --cover-package=networkx
after_success:
- coveralls