forked from SiLab-Bonn/pyBAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (48 loc) · 2.11 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
language: python
python:
- 2.7
branches:
only:
- master
- development
notifications:
email:
- janssen@physik.uni-bonn.de
- pohl@physik.uni-bonn.de
# 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/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- conda config --add channels silab
- conda info -a
- conda create --yes -n test-environment numpy cython pytables scipy matplotlib pandas pyserial bitarray nose pyzmq pyyaml
- source activate test-environment
- pip install progressbar-latest pyvisa pyvisa-py mock sphinx
- pip install https://github.com/SiLab-Bonn/pyqtgraph/archive/develop.zip # pyqtgraph is not working with numpy 1.10 right now, install our fixed fork instead
- pip install https://github.com/uvemas/ViTables/archive/v2.1.zip
- 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/miniconda/envs/test-environment/lib/libreadline.so.6
# Install pybar with needed packages
install:
- pip install https://github.com/walac/pyusb/archive/master.zip
- pip install pySiLibUSB
- if [ "$TRAVIS_BRANCH" == "master" ]; then pip install git+https://github.com/SiLab-Bonn/basil.git@v2.1.2; fi
- if [ "$TRAVIS_BRANCH" == "development" ]; then pip install git+https://github.com/SiLab-Bonn/basil.git@v2.1.2; 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 tests; nosetests test_analysis.py test_interface.py # --logging-level=INFO