forked from gausspy/gausspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (55 loc) · 2.23 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
#language: python
notifications:
email: false
#python:
#- "2.7"
#- "2.6"
#- "3.2"
#- "3.3"
#- "3.4"
#before_install:
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv; fi
# safelist
branches:
only:
- master
- setup
# use a virtual environment to install python packages
virtualenv:
system_site_packages: true
# install the relevant python packages, -qq will prevent excess output
# matrix:
# include:
# - os: linux
#: required # command to install dependencies
#- os: osx
#
os:
- osx
- linux
sudo: required
before_install:
- echo $TRAVIS_OS_NAME
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then ./.travis/before_install_osx.sh; fi
#- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then ./.travis/before_install_linux.sh; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install gsl; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then easy_install pip; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip install numpy scipy lmfit; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip install matplotlib; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip install h5py; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pip install pytest; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libblas-dev liblapack-dev gfortran -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libgsl0-dev -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libhdf5-serial-dev hdf5-tools -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install python-pip -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install python-matplotlib -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install python-h5py -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo pip install -U scipy numpy lmfit; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo pip install pytest; fi
install:
#- cat build/bdist.linux-x86_64/egg/lmfit/minimizer.py
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then python setup.py install --user; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then python setup.py install; fi
# command to run tests
script: pytest tests