Skip to content

Commit ab26575

Browse files
committed
build: robustify
1 parent 6001671 commit ab26575

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

build.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ set -eux
55
VIVADO_PREFIX=${VIVADO_PREFIX:-/opt/Xilinx/Vivado}
66
VIVADO_LATEST=$(ls $VIVADO_PREFIX | sort -n | tail -1)
77
VIVADO=${VIVADO:-$VIVADO_PREFIX/${VIVADO_LATEST:?}}
8+
export PATH=$PATH:$VIVADO/bin
89

910
python3 -m venv --system-site-packages py
11+
py/bin/pip install -r requirements.txt
12+
py/bin/python -m pytest
1013

11-
export PATH=$PATH:$PWD/py/bin:$VIVADO/bin
14+
py/bin/python phaser.py
1215

13-
pip install -r requirements.txt
14-
15-
python -m pytest
16-
python phaser.py
17-
18-
pip freeze > build/requirements.txt
16+
py/bin/pip freeze > build/requirements.txt
1917
tar czvf phaser.tar.gz \
2018
build/phaser.bit \
2119
build/requirements.txt \

0 commit comments

Comments
 (0)