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

Add OSX to Travis build matrix #3331

Merged
merged 2 commits into from
Jan 30, 2019
Merged

Add OSX to Travis build matrix #3331

merged 2 commits into from
Jan 30, 2019

Conversation

MarcusKlik
Copy link
Contributor

@MarcusKlik MarcusKlik commented Jan 29, 2019

Closes #3326.

In this PR the Travis configuration file has been updated to expand the Travis build matrix to OSX. In order to compile data.table on Travis OSX, an OpenMP enabled compiler is required, so the llvm homebrew package is installed before running R CMD build. Also, global variables LDFLAGS and CFLAGS were added (for OSX) as described in the data.table wiki documentation.

In addition to adding OSX, also the previous major release and R-devel builds of R were selected in the Travis build matrix. The OSX R-devel build was explicitly excluded from the matrix because Travis is currently not installing R-devel correctly. The total number of Travis builds is now 5 for each commit on the master branch.

As can be seen from the Travis OSX build output here, the OSX build is executed successfully. The total build time on OSX is usually a little longer than for Linux (in this case 14-16 minutes as compared to 10 for Linux)

If the previous major release and R-devel builds are not required, the r: field can be removed from travis.yml.

Note that code coverage is now calculated on all 5 builds, we could adapt the after success: field to run the coverage only on a linux/release build.

Thanks!

@mattdowle mattdowle added this to the 1.12.2 milestone Jan 30, 2019
@mattdowle
Copy link
Member

Fantastic! Thanks, Mark.

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