forked from yt-project/yt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (69 loc) · 1.91 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
68
69
70
71
72
73
74
75
language: python
sudo: false
cache:
pip: true
directories:
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
addons:
apt:
packages:
- libhdf5-serial-dev
env:
global:
NUMPY=numpy
CYTHON=cython
MATPLOTLIB=matplotlib
SYMPY=sympy
H5PY=h5py
SCIPY=scipy
IPYTHON=ipython
FASTCACHE=fastcache
FLAKE8=flake8
matrix:
include:
- python: 2.7
env: NUMPY=numpy==1.10.4 CYTHON=cython==0.24 MATPLOTLIB=matplotlib==1.5.3 SYMPY=sympy==1.0 H5PY= SCIPY= FASTCACHE= FLAKE8= IPYTHON=ipython==1.0
- python: 2.7
- python: 3.4
- python: 3.5
- python: 3.6
- os: osx
osx_image: xcode7.3
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
cache:
pip: false
directories:
- $HOME/Library/Caches/pip
# `cache` does not support `env`-like `global` so copy-paste from top
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
before_install:
- |
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
pip install --upgrade virtualenv
python -m virtualenv venv
source venv/bin/activate
export PATH=/usr/lib/ccache:$PATH
else
brew update
brew install ccache hdf5
export PATH=/usr/local/opt/ccache/libexec:$PATH
fi
mkdir -p $HOME/.config/yt
echo "[yt]" > $HOME/.config/yt/ytrc
echo "suppressStreamLogging = True" >> $HOME/.config/yt/ytrc
cat $HOME/.config/yt/ytrc
install:
- |
# setup environment
ccache -s
# Upgrade pip and setuptools and wheel to get clean install
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
# Install dependencies
pip install mock $NUMPY $SCIPY $H5PY $CYTHON $MATPLOTLIB $SYMPY $FASTCACHE $IPYTHON $FLAKE8 nose nose-timer
# install yt
pip install -e .
script:
- |
nosetests --nologcapture --with-timer -sv yt