forked from SiLab-Bonn/pyBAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (49 loc) · 2.22 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
language: python
python:
- 2.7
branches:
only:
- master
- development
notifications:
email:
# Setup miniconda with needed packages in a new virtual test-environment
before_install:
- sudo add-apt-repository -y ppa:team-electronics/ppa
- sudo apt-get update -qq
- wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda2
- export PATH="$HOME/miniconda2/bin:$PATH"
- conda update conda --yes
- conda config --add channels silab
- conda info -a
- conda create --yes -n test-environment bitarray cython ipython matplotlib mock nose numba numpy pyserial pytables pyyaml pyzmq scipy sphinx
- source activate test-environment
- pip install progressbar-latest pyvisa pyvisa-py mock sphinx
# - pip install git+https://github.com/pyqtgraph/pyqtgraph.git@develop
- pip install git+https://github.com/SiLab-Bonn/pyqtgraph.git@develop # keeping this fork until release 0.9.11
- pip install git+https://github.com/uvemas/[email protected]
- wget -O cocotb-master.zip https://github.com/potentialventures/cocotb/archive/master.zip
- unzip cocotb-master.zip
- export COCOTB=$(pwd)/cocotb-master
- rm -f /home/travis/miniconda2/envs/test-environment/lib/libreadline.so.6
# Install pybar with needed packages
install:
- pip install pyusb
- pip install pySiLibUSB
- if [ "$TRAVIS_BRANCH" == "master" ]; then pip install basil_daq==2.4.3 git+https://github.com/SiLab-Bonn/[email protected] pixel_clusterizer==2.5.0; fi
- if [ "$TRAVIS_BRANCH" == "development" ]; then pip install basil_daq==2.4.3 git+https://github.com/SiLab-Bonn/[email protected] pixel_clusterizer==2.5.0; fi
- sudo apt-get install -qq iverilog-daily
# Build iverilog from source
# - sudo apt-get install gperf
# - wget -O iverilog-master.zip https://github.com/steveicarus/iverilog/archive/master.zip
# - unzip iverilog-master.zip
# - cd iverilog-master && autoconf && ./configure && make && sudo make install && cd ..
# Install pybar
- python setup.py develop
# Run test
script:
- cd pybar/testing; nosetests test_analysis.py test_interface.py # --logging-level=INFO