-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authored by r9-pena. Splits workflow into multiple pieces for efficiency.
- Loading branch information
Showing
11 changed files
with
200 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
name: 'F prime CI' | ||
description: 'Runs continuous integration testing on F prime' | ||
inputs: | ||
test: | ||
description: Test number to run | ||
required: true | ||
default: '' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.test }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
#### | ||
# Framework.bash: | ||
# | ||
# Run the tests on the software through fp-util. | ||
#### | ||
# Directory to be used for Framework CI test | ||
export FPUTIL_DEPLOYS="${FPRIME_DIR}" | ||
|
||
export SCRIPT_DIR="$(dirname ${BASH_SOURCE})/.." | ||
. "${SCRIPT_DIR}/helpers.bash" | ||
. ${SCRIPT_DIR}/tests/fputil.bash | ||
|
||
export CMAKE_EXTRA_SETTINGS="" | ||
echo -e "${BLUE}Testing ${FPUTIL_DEPLOYS} against fprime-util targets: ${FPUTIL_TARGETS[@]}${NOCOLOR}" | ||
export CHECK_TARGET_PLATFORM="native" | ||
for target in "${FPUTIL_TARGETS[@]}" | ||
do | ||
if [[ "${target}" == "generate" ]] | ||
then | ||
rm -rf "${FPUTIL_DEPLOYS}/build-fprime-automatic-"* | ||
fi | ||
fputil_action "${FPUTIL_DEPLOYS}" "${target}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
#### | ||
# RPI.bash: | ||
# | ||
# Run the tests on the software through fp-util. | ||
#### | ||
# Directory to be used for RPI CI test | ||
export FPUTIL_DEPLOYS="${FPRIME_DIR}/RPI" | ||
|
||
export SCRIPT_DIR="$(dirname ${BASH_SOURCE})/.." | ||
. "${SCRIPT_DIR}/helpers.bash" | ||
. ${SCRIPT_DIR}/tests/fputil.bash | ||
|
||
export CMAKE_EXTRA_SETTINGS="" | ||
if [ ! -d "/opt/rpi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf" ] | ||
then | ||
warn_and_cont "RPI tools not installed, refusing to test." | ||
continue | ||
fi | ||
# For RPI deployment to disable FRAMEWORK UTS | ||
export CMAKE_EXTRA_SETTINGS="${CMAKE_EXTRA_SETTINGS} -DFPRIME_ENABLE_FRAMEWORK_UTS=OFF" | ||
|
||
echo -e "${BLUE}Testing ${FPUTIL_DEPLOYS} against fprime-util targets: ${FPUTIL_TARGETS[@]}${NOCOLOR}" | ||
export CHECK_TARGET_PLATFORM="native" | ||
for target in "${FPUTIL_TARGETS[@]}" | ||
do | ||
if [[ "${target}" == "generate" ]] | ||
then | ||
rm -rf "${FPUTIL_DEPLOYS}/build-fprime-automatic-"* | ||
fi | ||
fputil_action "${FPUTIL_DEPLOYS}" "${target}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
#### | ||
# Ref.bash: | ||
# | ||
# Run the tests on the software through fp-util. | ||
#### | ||
# Directory to be used for Ref CI test | ||
export FPUTIL_DEPLOYS="${FPRIME_DIR}/Ref" | ||
|
||
export SCRIPT_DIR="$(dirname ${BASH_SOURCE})/.." | ||
. "${SCRIPT_DIR}/helpers.bash" | ||
. ${SCRIPT_DIR}/tests/fputil.bash | ||
|
||
export CMAKE_EXTRA_SETTINGS="" | ||
# For Ref deployment to disable FRAMEWORK UTS | ||
export CMAKE_EXTRA_SETTINGS="${CMAKE_EXTRA_SETTINGS} -DFPRIME_ENABLE_FRAMEWORK_UTS=OFF" | ||
|
||
echo -e "${BLUE}Testing ${FPUTIL_DEPLOYS} against fprime-util targets: ${FPUTIL_TARGETS[@]}${NOCOLOR}" | ||
export CHECK_TARGET_PLATFORM="native" | ||
for target in "${FPUTIL_TARGETS[@]}" | ||
do | ||
if [[ "${target}" == "generate" ]] | ||
then | ||
rm -rf "${FPUTIL_DEPLOYS}/build-fprime-automatic-"* | ||
fi | ||
fputil_action "${FPUTIL_DEPLOYS}" "${target}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters