#!/bin/bash

source ${0%/*}/utils/common.sh

export QTRPI_CURL_OPT="--user $CI_AUTH_USER:$CI_AUTH_PASSWORD"
export QTRPI_BASE_URL="$CI_BASE_URL/job/qtrpi/QT_VERSION=$QTRPI_QT_VERSION,TARGET_DEVICE=$QTRPI_TARGET_DEVICE/lastSuccessfulBuild/artifact/dist"

pushd $ROOT

rm -rf raspi/{qt5,qt5pi}
download_qtrpi_binaries

EXAMPLE_BIN='qopenglwidget'
message "Download $EXAMPLE_BIN from $QTRPI_BASE_URL/$EXAMPLE_BIN"
curl $QTRPI_CURL_OPT \
    -o raspi/qt5pi/$EXAMPLE_BIN \
    $QTRPI_BASE_URL/$EXAMPLE_BIN 

chmod +x raspi/qt5pi/$EXAMPLE_BIN
popd

./deploy-qtrpi.sh --prepare-rpi


#!/bin/bash

source ${0%/*}/utils/common.sh

$UTILS_DIR/init-common.sh

export QTRPI_CURL_OPT="--user $CI_AUTH_USER:$CI_AUTH_PASSWORD"
export QTRPI_BASE_URL="$CI_BASE_URL/job/qtrpi/QT_VERSION=$QTRPI_QT_VERSION,TARGET_DEVICE=$QTRPI_TARGET_DEVICE/lastSuccessfulBuild/artifact/dist"

pushd $ROOT

rm -rf raspi/{qt5,qt5pi}
download_qtrpi_binaries

EXAMPLE_BIN='qopenglwidget'
message "Download $EXAMPLE_BIN from $QTRPI_BASE_URL/$EXAMPLE_BIN"
curl $QTRPI_CURL_OPT \
    -o raspi/qt5pi/$EXAMPLE_BIN \
    $QTRPI_BASE_URL/$EXAMPLE_BIN 

chmod +x raspi/qt5pi/$EXAMPLE_BIN
popd

./deploy-qtrpi.sh --prepare-rpi


Fix common init for the test script
Fix common init for the test script
