forked from sp1nelson/pyFDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (63 loc) · 2.1 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
76
77
language: python
# adapted from https://github.com/GriMel/Kindleo/blob/master/.travis.yml
# see also: http://qosvn.physik.uni-ulm.de/trac/qudi/browser/.travis.yml?rev=4d902d3b6464ef2bb22aa535358537b57b382518
#env:
# global:
# - SETUP_XVFB=True
# - CONDA_CHANNELS="qttesting"
# - CONDA_DEPENDENCIES="jedi jupyter lxml matplotlib numpy openssl pip pygments pyparsing python-dateutil pyzmq scipy sip six tornado traitlets"
# - PIP_DEPENDENCIES="fysom gitpython hdf5storage lmfit pydaqmx pyvisa pyvisa-py qtpy rpyc ruamel.yaml smmap spidev i2cdev"
#
# matrix:
# - PYTHON_VERSION=3.4 USE_QT_API=PyQt4
# - PYTHON_VERSION=3.4 USE_QT_API=PyQt5
# - PYTHON_VERSION=3.5 USE_QT_API=PyQt4
# - PYTHON_VERSION=3.5 USE_QT_API=PyQt5
global:
- SETUP_XVFB=True
python:
- "2.7"
- "3.5"
before_install:
- uname -a
- free -m
- df -h
- ulimit -a
- sudo mkdir -p /downloads
- sudo chmod a+rw /downloads
- curl -L https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.2/sip-4.19.2.tar.gz -o /downloads/sip.tar.gz
- curl -L https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_x11-4.12.tar.gz -o /downloads/pyqt4.tar.gz
# Builds directory
- sudo mkdir -p /builds
- sudo chmod a+rw /builds
install:
# Qt4
- pushd /builds
# SIP
- tar xzf /downloads/sip.tar.gz --keep-newer-files
- pushd sip-4.19.2
- python configure.py
- make
- sudo make install
- popd
# PyQt4
- tar xzf /downloads/pyqt4.tar.gz --keep-newer-files
- pushd PyQt4_gpl_x11-4.12 # .tar
- python configure.py -c --confirm-license --no-designer-plugin -e QtCore -e QtGui -e QtTest
- make
- sudo make install
- popd
- pip install -U pip wheel setuptools
- pip install numpy nose six docutils matplotlib
- pip install -v -U scipy
- python -V
# Builds Complete
- popd
#- pip install -r requirements.txt
#- pip install coveralls
- pip install .
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" # use X Virtual Framebuffer to imitate a display
- sleep 3 # give xvfb some time to start
script: nosetests --verbosity=3