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

Fix Conan profile in deploy script #676

Merged
merged 3 commits into from
Dec 27, 2020

Conversation

johnmcfarlane
Copy link
Owner

@johnmcfarlane johnmcfarlane commented Dec 27, 2020

Deploy script broke because conan build builds everything and script wasn't set up to build. (Specifically, it needed to set settings.compiler.libcxx to libstdc++11 in the profile.)

Along the way, the branch name for this MR, fix-conan-profile-in-deploy.sh highlighted brittleness in the shellcheck script which provided an opportunity to implement some long-overdue improvements to Bash scripts.

- uses `git ls-files` -- instead of `find` -- to ensure that files under
  .git subdirectory are ignored
  - (This becomes a problem if any files under /.git/ match criteria for
    being a script.)
- uses file mode bits and shebang of script file -- instead of file
  extensions -- to test whether each file is a bash script
- hypothesis is that since switch to using Conan to
build CNL, unit tests are now build during deplotment and
this highlights that Conan isn't correctly configured
- Executables shouldn't need a file extension; they're already marked as
  executable.
- .sh should be reserved for files that are run using the `source` command
  under the sh shell -- not executable files that use the bash shell.
@johnmcfarlane johnmcfarlane changed the base branch from main to v1.x December 27, 2020 20:16
@johnmcfarlane johnmcfarlane merged commit 4d44556 into v1.x Dec 27, 2020
@johnmcfarlane johnmcfarlane deleted the fix-conan-profile-in-deploy.sh branch December 27, 2020 21:42
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

1 participant