forked from gregdavill/valentyusb
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
53 lines (52 loc) · 2.06 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
language: python
python:
- "3.7"
jobs:
include:
# Travis does not support matrix expansion in stages,
# so we use YAML anchors to get parallel builds
- &test_body
env:
- T=valentyusb S=test-eptri OP=sim
install:
# Clone these here rather than as part of the main repo,
# in order to avoid cloning a second copy of litex when
# this is used as part of another repo.
- git -C test-suite clone https://github.com/antmicro/usb-test-suite-testbenches.git
- git -C test-suite clone https://github.com/antmicro/usb-test-suite-cocotb-usb.git
- git -C test-suite clone https://github.com/enjoy-digital/litex.git
# We need to install those in virtualenv, as cocotb will use this instead of conda
- pip install -r test-suite/conf/requirements.txt
- pip install -e test-suite/usb-test-suite-cocotb-usb/
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create --file test-suite/conf/environment.yml
- conda activate usb-test-suite-env
# conda complains if it does not have the libs as well
- pip install -r test-suite/conf/requirements.txt
- cd test-suite/litex
- ./litex_setup.py init install
- cd -
script:
- cd test-suite/usb-test-suite-testbenches
- make PYTHONPATH=../litex:../.. TARGET=$T TEST_SCRIPT=$S $OP
- <<: *test_body
env:
- T=valentyusb S=test-enum OP=sim
- <<: *test_body
env:
- T=valentyusb S=test-w10enum OP=sim
- <<: *test_body
env:
- T=valentyusb S=test-clocks OP=sim
- <<: *test_body
env:
- T=valentyusb S=test-macOSenum OP=sim
- <<: *test_body
env:
- T=valentyusb S=test-valenty-cdc OP=sim