-
Notifications
You must be signed in to change notification settings - Fork 253
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 the Travis script to run on Linux and OS X #36
Conversation
In this commit, the `.travis.yml` (Travis build script) has been updated to build and test on both Linux and OS X. To achieve this the `script` portion of the script, checks for the os type and runs the correct provisioning script accordingly. Another change is, `matrix` was added, and this sets the correct environment variables depending on the os.
You seem to be mixing two styles in the multi-os guidelines, one style is:
the other is the "matrix" style, e.g.:
why is that? |
@thedataking that's what I seen from various other sources (a lot of the |
Added `python3-setuptools` to the linux provisioning script, because the travis xenial box does not seem to install recommended packages. Also moved `os: linux` into `matrix:` within the travis script.
@miguelsaldivar I had two minor comments, other than that, this looks ready to merge! |
.travis.yml
Outdated
- ./scripts/provision_mac.sh | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
# - HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade python |
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.
Should be # HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade python
. Otherwise, uncommenting the line would not work.
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.
Yup, that makes sense. 👍
In this commit, the
.travis.yml
(Travis build script) has beenupdated to build and test on both Linux and OS X. To achieve this
the
script
portion of the script, checks for the os type and runsthe correct provisioning script accordingly. Another change is,
matrix
was added, and this sets the correct environment variables depending on
the os.