-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (51 loc) · 1.31 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
# Use containers.
sudo: false
dist: xenial
language: python
python:
- 3.6
addons:
apt:
packages:
- scons
# headless as some of the tests will show the GUI.
#
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
#
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- pwd
- git --version
- python3 --version
- pip install --upgrade pip
# Install dependencies.
- pip3 install pyqt5
- pip3 install numpy
- pip3 install scipy
- pip3 install pillow
- pip3 install pyqtgraph
- pip3 install matplotlib
- pip3 install tifffile
- pip3 install pyserial
- pip3 install pytest
- pip3 install pytest-mock
- pip3 install pytest-qt
- pip3 install pytest-xdist
# Install storm-analysis (lite.. we only need the datareader.py file for the tests).
- cd ..
- git clone https://github.com/ZhuangLab/storm-analysis
- ls
# stackoverflow - https://stackoverflow.com/questions/3402168/permanently-add-a-directory-to-pythonpath
- export PYTHONPATH="${PYTHONPATH}:`pwd`/storm-analysis/"
- export PYTHONPATH="${PYTHONPATH}:`pwd`/storm-control/"
- python -c "import sys; print(sys.path)"
# build C libraries.
- ls
- cd storm-control
- scons
# test
- cd storm_control/test
- py.test --boxed