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

[WIP] TravisCI: fix and improve MacOS build #353

Closed
wants to merge 8 commits into from
Closed

Conversation

TSC21
Copy link
Member

@TSC21 TSC21 commented Oct 11, 2019

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.

@TSC21
Copy link
Member Author

TSC21 commented Oct 11, 2019

@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
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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}";
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Contributor

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 🙈

@TSC21
Copy link
Member Author

TSC21 commented Oct 22, 2019

Superseded by #354

@TSC21 TSC21 closed this Oct 22, 2019
@TSC21 TSC21 deleted the update_ci branch October 22, 2019 08:07
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