-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
70 lines (69 loc) · 2.72 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
68
69
70
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 CDC=1
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
- 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
- pip install -e test-suite/usb-test-suite-cocotb-usb/
- cp test-suite/litex/litex_setup.py test-suite
- ./test-suite/litex_setup.py init install --user
script:
- cd test-suite/usb-test-suite-testbenches
- make PYTHONPATH=../litex:../.. TARGET=$T TEST_SCRIPT=$S $OP CDC=$CDC && ! grep -q failure results.xml
- <<: *test_body
env:
- T=valentyusb S=test-clocks OP=sim CDC=1
- <<: *test_body
env:
- T=valentyusb S=test-clocks OP=sim CDC=0
- <<: *test_body
env:
- T=valentyusb S=test-enum OP=sim CDC=1
- <<: *test_body
env:
- T=valentyusb S=test-w10enum OP=sim CDC=1
- <<: *test_body
env:
- T=valentyusb S=test-macOSenum OP=sim CDC=1
- <<: *test_body
env:
- T=valentyusb S=test-valenty-cdc OP=sim CDC=1
- <<: *test_body
env:
- T=valentyusb S=test-eptri OP=sim CDC=0
- <<: *test_body
env:
- T=valentyusb S=test-enum OP=sim CDC=0
- <<: *test_body
env:
- T=valentyusb S=test-w10enum OP=sim CDC=0
- <<: *test_body
env:
- T=valentyusb S=test-macOSenum OP=sim CDC=0
- <<: *test_body
env:
- T=valentyusb S=test-valenty-cdc OP=sim CDC=0