Skip to content

Commit

Permalink
Merge pull request #190 from analogdevicesinc/tfcollins/synth-ci
Browse files Browse the repository at this point in the history
Tfcollins/synth ci
  • Loading branch information
tfcollins authored Dec 9, 2024
2 parents 1154ab1 + c652b9f commit 95736de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
12 changes: 6 additions & 6 deletions CI/scripts/synth_designs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ cd ../..
cp hdl/vendor/AnalogDevices/hdlcoder_board_customization.m test/hdlcoder_board_customization_local.m
sed -i "s/hdlcoder_board_customization/hdlcoder_board_customization_local/g" test/hdlcoder_board_customization_local.m
source /opt/Xilinx/Vivado/2022.2/settings64.sh
Xvfb :77 &
export DISPLAY=:77
# Randomize DISPLAY number to avoid conflicts
export DISPLAY_ID=:$(shuf -i 10-1000 -n 1)
Xvfb :$DISPLAY_ID &
XVFB_PID=$!
export DISPLAY=:$DISPLAY_ID
export SWT_GTK3=0
source /opt/Xilinx/Vivado/2022.2/settings64.sh
$MLPATH/$MLRELEASE/bin/matlab $MLFLAGS -r "cd('test');runSynthTests('$BOARD');"
EC=$?
pidof Xvfb
if [ $? -eq 0 ]; then
kill -9 `pidof Xvfb`
fi
kill -9 $XVFB_PID || true
exit $EC
23 changes: 11 additions & 12 deletions JenkinsfileCron
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@Library('tfc-lib') _
@Library('tfc-lib@adef-ci') _

dockerConfig = getDockerConfig(['MATLAB','Vivado'], matlabHSPro=false)
dockerConfig = getDockerConfig(['MATLAB','Vivado','Internal'], matlabHSPro=false)
dockerConfig.add("-e MLRELEASE=R2023b")
dockerHost = 'docker'

Expand Down Expand Up @@ -30,7 +30,7 @@ stage("Build Toolbox") {
}
}
if (branchName == 'hdl_2022_r2') {
stash includes: '**', name: 'builtSources', useDefaultExcludes: false
local_stash('builtSources')
archiveArtifacts artifacts: 'hdl/*', followSymlinks: false, allowEmptyArchive: true
}
}
Expand Down Expand Up @@ -60,8 +60,7 @@ for (int i=0; i < boardNames.size(); i++) {
try {
stage("Synth") {
echo "Node: ${env.NODE_NAME}"
unstash "builtSources"
sh 'apt install -y xvfb'
local_unstash('builtSources', '', false)
sh 'echo "BOARD:$BOARD"'
sh 'make -C ./CI/scripts test_synth'
junit testResults: 'test/*.xml', allowEmptyResults: true
Expand All @@ -85,10 +84,10 @@ for (int i=0; i < boardNames.size(); i++) {

parallel deployments

node {
stage("Trigger Harness") {
echo "Node: ${env.NODE_NAME}"
unstash "builtSources"
triggerHWHarness("TransceiverToolbox")
}
}
// node {
// stage("Trigger Harness") {
// echo "Node: ${env.NODE_NAME}"
// local_unstash('builtSources')
// triggerHWHarness("TransceiverToolbox")
// }
// }

0 comments on commit 95736de

Please sign in to comment.