-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (57 loc) · 1.94 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
63
64
65
66
67
# 2015-07-23 14:05 CAUTION: This file is automatically generated from travis.yml.tpl, do not edit it manually
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.4"
- "3.3"
- "2.7"
#os:
# - linux
# - osx
#
#sudo: false
#env:
# -
# - PYCOSAT=0.6.0
## command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
#install:
# - pip install -r requirements.txt
#
## command to run tests, e.g. python setup.py test
#script:
# - py.test
notifications:
email: false
# Update system and install miniconda, fill in the rest via pip
before_install:
- sudo apt-get update -qq
- sudo apt-get install -q -y gfortran libhdf5-serial-dev libnetcdf-dev liblapack-dev libatlas-dev
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:/home/travis/miniconda/bin:$PATH
#- source /home/travis/miniconda/bin/activate root
- conda update -yq conda
- conda install -yq conda-env conda-build binstar binstar-build jinja2
- conda create -yq -n condaenv python=$TRAVIS_PYTHON_VERSION
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- source activate condaenv
- conda install -yq atlas numpy scipy matplotlib pandas blaze pip pyyaml nose sphinx jinja2
#- conda install -yq -c coolprop coolprop
- pip install coolprop texttable brewer2mpl future coveralls nose-cov codecov tox
- python setup.py install
# Run test
script:
- nosetests --with-coverage --cover-package=jopy --logging-level=INFO
# Calculate coverage
after_success:
- coveralls
- codecov