-
Notifications
You must be signed in to change notification settings - Fork 68
/
.travis.yml
67 lines (56 loc) · 1.45 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
# Use containers.
sudo: false
dist: xenial
language: python
python:
- 3.6
addons:
apt:
sources:
- sourceline: "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe"
packages:
- qt5-default
- libfftw3-dev
- liblapack-dev
- scons
- xvfb
script:
- pwd
- git --version
- python3 --version
- pip install --upgrade pip
# Install dependencies.
- pip3 install pyqt5
- pip3 install h5py
- 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-forked
- pip3 install pytest-mock
- pip3 install pytest-qt
- pip3 install pytest-xdist
# Install storm-analysis
- cd ..
- git clone https://github.com/ZhuangLab/storm-analysis
- cd storm-analysis
- scons
- cd ..
- 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
- xvfb-run py.test --forked
# - xvfb-run --server-args="-screen 0 1920x1080x24" py.test test_buffered_1.py
# - xvfb-run --server-args="-screen 0 1920x1080x24" py.test test_hello_world.py