Skip to content

Commit

Permalink
ci(cocotb top-level): use prepare.sh + pyproject.toml instead of dep.…
Browse files Browse the repository at this point in the history
… list
  • Loading branch information
martinspinler committed Nov 12, 2024
1 parent 1a7b634 commit 0d90891
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions apps/minimal/tests/cocotb/top-level-sim.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,20 @@ def CARDS = ["alveo-u200", "alveo-u55c", "vcu118", "ia-420f", "n6010", "fb2cghh"

node("preklad") {
cleanWs()
def swbase = "ndk-sw"
checkout scm

stage("Clone required repository") {
sh "git clone https://github.com/CESNET/ndk-sw.git"
}

if (params.nightly != null && params.nightly == true) {
stage("Prepare for nightly build") {
sh "(cd extra/nfb-200g2ql; git checkout main)"
sh "(cd extra/dma-medusa; git checkout main)"
}
}

sh "python3.9 -m venv venv-cocotb"

stage("Prepare environment") {
sh """
source venv-cocotb/bin/activate
python3.9 -m pip install cython wheel
python3.9 -m pip install pylibfdt fdt
python3.9 -m pip wheel -w ./cocotbwheels ${swbase}/pynfb/
python3.9 -m pip install --find-links ./cocotbwheels nfb
python3.9 -m pip install --find-links ./cocotbwheels ${swbase}/ext/libnfb_ext_python/
python3.9 -m pip install python/cocotbext/
source ./env.sh
ndk_fpga_venv_prepare "venv-cocotb"
pip install apps/minimal/tests/cocotb
"""
}

Expand Down

0 comments on commit 0d90891

Please sign in to comment.