forked from ilastik/ilastik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 2.03 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
language: python
python:
- "2.7"
install:
- sudo apt-get install -y libboost-python-dev
- sudo apt-get install -y libjpeg-dev
- sudo apt-get install -y libtiff4-dev
- sudo apt-get install -y libpng12-dev
- sudo apt-get install -y libfftw3-dev
- sudo apt-get install -y libhdf5-serial-dev
- sudo apt-get install -y cmake
- sudo apt-get install -y python-qt4 python-qt4-dev python-sip python-sip-dev
- ln -s /usr/lib/python2.7/dist-packages/PyQt4/ $VIRTUAL_ENV/lib/python2.7/site-packages/
- ln -s /usr/lib/python2.7/dist-packages/sip.so $VIRTUAL_ENV/lib/python2.7/site-packages/
- ln -s /usr/lib/python2.7/dist-packages/sipdistutils.py $VIRTUAL_ENV/lib/python2.7/site-packages/
- ln -s /usr/lib/python2.7/dist-packages/sipconfig.py $VIRTUAL_ENV/lib/python2.7/site-packages/
- ln -s /usr/lib/python2.7/dist-packages/sipconfig_nd.py $VIRTUAL_ENV/lib/python2.7/site-packages/
- pip install -r .travis_scripts/requirements/development-stage1.txt --use-mirrors
- pip install -r .travis_scripts/requirements/development-stage2.txt --use-mirrors
- sudo sh .travis_scripts/install_vigra.sh $VIRTUAL_ENV
- git clone http://github.com/ilastik/volumina /tmp/volumina
- git clone http://github.com/ilastik/lazyflow /tmp/lazyflow
- sudo sh .travis_scripts/build_drtile.sh $VIRTUAL_ENV /tmp/lazyflow
- mkdir ~/.lazyflow
- echo "[verbosity]" > ~/.lazyflow/config
- echo "deprecation_warnings = false" >> ~/.lazyflow/config
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH"
- "export PYTHONPATH=/tmp/volumina:/tmp/widgets:/tmp/lazyflow:$PYTHONPATH"
script:
- python ./tests/bin/generate_test_data.py /tmp/test_data
- ./tests/run_each_unit_test.sh
# For some reason, recorded tests can segfault on travis.
# For now, we'll have to settle for running them independently in the ilastik-test-vm
# - ./tests/run_recorded_tests.sh
notifications:
email:
branches:
only:
- master