Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tools/code_check.sh optional #455

Closed
wants to merge 1 commit into from
Closed

Conversation

chapulina
Copy link
Contributor

I think we can start retiring that script in favor of make codecheck on GitHub actions.

See #446

@scpeters
Copy link
Contributor

@@ -102,7 +102,7 @@ else
echo "Requested: no test run"
fi

if $GENERIC_ENABLE_CPPCHECK; then
if [ $GENERIC_ENABLE_CPPCHECK ] && [ -f tools/code_check.sh ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the path is incorrect. I see the following console output in the CI job that should have detected a tools/code_check.sh script:

+ '[' -f tools/code_check.sh ']'
+ echo 'Requested: no ccpcheck run'

it probably needs to be [ -f $WORKSPACE/${SOFTWARE_DIR}/tools/code_check.sh ]

@chapulina
Copy link
Contributor Author

Looking at the ign-math PR, this change isn't necessary because we already have the || true to prevent failure in the case of a missing code_check.sh:

https://github.com/ignition-tooling/release-tools/blob/a566144052ea70964f4b77cc34886395c50286f0/jenkins-scripts/docker/lib/_generic_linux_compilation_build.sh.bash#L113

@chapulina chapulina closed this Apr 29, 2021
@chapulina chapulina deleted the chapulina/code_check branch April 29, 2021 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants