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

Use Meson in CI #162

Open
Martinsos opened this issue Oct 10, 2020 · 1 comment
Open

Use Meson in CI #162

Martinsos opened this issue Oct 10, 2020 · 1 comment
Assignees

Comments

@Martinsos
Copy link
Owner

Now that we have Meson as build tool, we would like to use it as main build tool in the CI.

Here are some suggestions on how to do this:

#161 (comment)
#161 (comment)

@Martinsos Martinsos self-assigned this Oct 10, 2020
@cdunn2001
Copy link
Contributor

I'm simplifying the travisci setup for jsoncpp.

I have to say that homebrew makes OSX setup so easy, I'd recommend it. I don't think you need to bother with pyp for ninja. No real advantage on OSX.

Actually, the whole meson/ninja setup is pretty easy. cmake is harder.

I'd recommend copying our travis/appveyor stuff, but your linux/cmake build is already faster than ours. (I think ours is slower only because we use cpp-coveralls for code-coverage.) In theory, one big advantage of our current setup over yours is sudo: false. Without sudo, TravisCI can use a VM for your build, so it finds an available host quicker. At least, that used to be true. Today, it seems like everything is pretty quick.

So here is what I recommend for now: Add meson to your homebrew section of .travis.yml for OSX (where you already have ninja), and build your code twice on OSX in a single job: Once with cmake and once with meson. That's very quick (< 1min) and easy to maintain.

Good luck!

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

No branches or pull requests

2 participants