-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (45 loc) · 1.97 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
language: python
python:
- "2.7"
# - "3.2"
# whitelist
branches:
only:
- master
# command to install dependencies
virtualenv:
system_site_packages: true
before_install:
- 'if [ $TRAVIS_PYTHON_VERSION == "2.7" ]; then sudo apt-get update;sudo apt-get install python-numpy python-scipy python-matplotlib python-qt4 python-h5py; fi'
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then sudo apt-get update;sudo apt-get install python3-numpy python3-scipy python3-pyqt4 libhdf5-openmpi-dev; fi'
# - sudo apt-get install libhdf5-openmpi-dev
# - cd ..
# - wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.14.5/sip-4.14.5.tar.gz
# - tar -xvf sip-4.14.5.tar.gz
# - cd sip-4.14.5
# - python configure.py
# - make -j 4
# - sudo make install
# - cd ..
# - wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.10/PyQt-x11-gpl-4.10.tar.gz
# - tar -xvf PyQt-x11-gpl-4.10.tar.gz
# - cd PyQt-x11-gpl-4.10
# - python configure.py --confirm-license
# - make -j 4
# - sudo make install
# - cd ../quicknxs
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
# - 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then pip install http://sourceforge.net/projects/pyparsing/files/pyparsing/pyparsing-1.5.7/pyparsing-1.5.7.tar.gz; fi'
# - "pip install numpy --use-mirrors"
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then export C_INCLUDE_PATH=/usr/lib/openmpi/include; fi'
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then pip install h5py --use-mirrors; fi'
# # - "pip install scipy --use-mirrors"
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then pip install matplotlib --use-mirrors; fi'
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then 2to3-3.2 -w scripts/quicknxs quicknxs tests test_all.py; fi'
# command to run tests
script:
- 'if [ $TRAVIS_PYTHON_VERSION == "2.7" ]; then python -m unittest test_all; fi'
- 'if [ $TRAVIS_PYTHON_VERSION == "3.2" ]; then python -m unittest tests.qreduce_test tests.qcalc_test tests.qio_test; fi'