-
Notifications
You must be signed in to change notification settings - Fork 803
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
[WIP] TravisCI: fix and improve MacOS build #353
Conversation
@julianoes it already finds gstreamer on the MacOS build but still fails because of the protobuf issue. Maybe the bottles weren't updated yet. |
@@ -79,9 +79,25 @@ matrix: | |||
env: | |||
- PX4_DOCKER_REPO=px4io/px4-dev-simulation-bionic:2019-10-04 | |||
- BUILD="source ./scripts/validate_sdf.bash" | |||
- name: MacOSX 10.14 (Xcode 11.0) build with Gazebo 9 | |||
- name: MacOSX Sierra (Xcode 9.2) build with Gazebo 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would drop this version. Supporting 2 and with Catalina 3 is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am adding this one so we can have a build pipe for Gazebo 7 also in MacOSX.
execute_process(COMMAND export Qt5_DIR=$(brew --prefix qt5)) | ||
execute_process(COMMAND brew --prefix qt5 | ||
ERROR_QUIET | ||
OUTPUT_VARIABLE QT5_PREFIX_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, actually this one is nicer than my solution.
mkdir Build; | ||
cd Build && cmake -DENABLE_UNIT_TESTS=On .. && make -j$(sysctl -n hw.physicalcpu) -l$(sysctl -n hw.physicalcpu); make test; | ||
else | ||
docker run -it --rm -w ${TRAVIS_BUILD_DIR} --env=CCACHE_DIR="${CCACHE_DIR}" --volume=${CCACHE_DIR}:${CCACHE_DIR}:rw --volume=${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR}:rw ${PX4_DOCKER_REPO} /bin/bash -e -c "${BUILD}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TSC21 what do we use docker for here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To build on the Linux distros.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that's inside the if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, there is the else 🙈
Superseded by #354 |
This is a continuation of the work being done for bringing
gstreamer
to the MacOSX build and make it pass. Adds some new build pipes so to cross test in different MacOSX versions.