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

Update "testing" build script so it works regardless of execution location #929

Merged
merged 41 commits into from Jan 18, 2018

Conversation

cailyoung
Copy link
Contributor

I updated build-commandpost-testing.sh so that it:

  • Mirrors the method the release script uses to figure out which directories to look in
  • Uses librelease.sh to drive the build process so it can be altered later if necessary

Update from upstream repo commandpost/commandpost
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
Update from upstream repo commandpost/commandpost@develop
make release
make docs
# Import our function library
# shellcheck source=scripts/inc/librelease.sh disable=SC1091

Choose a reason for hiding this comment

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

Couldn't parse this shellcheck annotation.
Expected "disable". Fix any mentioned problems and try again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stickler needs to update their shellcheck version to one that includes the source argument for directives. All this does is tell shellcheck where the script actually is.

make release
make docs
# Import our function library
# shellcheck source=scripts/inc/librelease.sh disable=SC1091

Choose a reason for hiding this comment

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

Couldn't parse this shellcheck annotation.
Expected "disable". Fix any mentioned problems and try again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same comment as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update from upstream repo commandpost/commandpost@develop
Merging latest dev commits
make release
make docs
# Import our function library
# shellcheck source=scripts/inc/librelease.sh disable=SC1091

Choose a reason for hiding this comment

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

Couldn't parse this shellcheck annotation.
Expected "disable". Fix any mentioned problems and try again.

@latenitefilms
Copy link
Contributor

It doesn't look like there's anything in your script to change over to the "test" configuration?

@cailyoung
Copy link
Contributor Author

The original one was executing make release which builds the Xcode project in a release config. You could alter my new function in librelease.sh to do a debut scheme build but I don’t know if that’s necessary for CommandPost dev work?

@cailyoung
Copy link
Contributor Author

*debug

@cailyoung
Copy link
Contributor Author

@latenitefilms are you saying you'd prefer the script to actually build CommandPost-App from the Debug scheme? Thats an easy fix.

@@ -232,6 +232,20 @@ function build_hammerspoon_app() {
fi
}

function build_hammerspoon_dev() {
echo "Building CommandPost.app for development..."
pushd "${HAMMERSPOON_HOME}" >/dev/null

Choose a reason for hiding this comment

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

Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

rm build/docs.json
# make docs
# make build/html/LuaSkin
popd >/dev/null

Choose a reason for hiding this comment

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

Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

@cailyoung
Copy link
Contributor Author

@latenitefilms this now passes stickler. Let me know if you want the xcodebuild to run against the debug scheme instead.

@latenitefilms
Copy link
Contributor

@cailyoung - To be honest, I'm not really sure how the debug/test scheme works. Need to do some playing around with Hammerspoon.

@latenitefilms latenitefilms merged commit 7377ea1 into CommandPost:develop Jan 18, 2018
@cailyoung cailyoung deleted the fix-test-build-script branch January 19, 2018 22:05
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.

None yet

3 participants