Skip to content

Add Travis CI configuration file (linux, gcc/clang) #40

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

Merged
merged 1 commit into from
Oct 27, 2013

Conversation

ruslo
Copy link
Contributor

@ruslo ruslo commented Oct 26, 2013

No description provided.

@ruslo
Copy link
Contributor Author

ruslo commented Oct 26, 2013

Hi! I've finally finished having fun with travis-ci server (travis-ci.org).
Travis have a better integration with github (ex.: pull request tested automatically).
I've made a configuration for linux builds: clang/gcc + static/shared + debug/release.
Take a look at this page for report: https://travis-ci.org/ruslo/uri/builds/13082890

There are a lot of external ubuntu repo and different workaround to work smooth.
I've create this project: https://github.com/travis-ci-tester to check that
all this stuff is needed. If you know better solution for some problems, let me know (:

Note: I failed to make work clang with libcxx:
https://github.com/travis-ci-tester/travis-test-clang-with-libcxx

Currently there are Mac OS servers (I think with better clang + libcxx support), but there
is no way to create config with two different languages (to trigger build on mac you
need to set language to objective-c). It is an open issue: travis-ci/travis-ci#216

As a workaround two different branches may be used.

@ruslo
Copy link
Contributor Author

ruslo commented Oct 26, 2013

I create branch for mac testing (with libc++ support):
https://github.com/ruslo/uri/tree/travis-ci.macosx

Here is result:
https://travis-ci.org/ruslo/uri/builds/13095313

If you make branch 'travis-ci.macosx' I can send you pull request

I remove static configuration, because in this case boost library with libcxx needed.
This is example when linking with boost failed:
https://travis-ci.org/ruslo/uri/jobs/13094302

I've tried to install boost by brew install boost --with-c++11, but with no luck, brew hangs.
See https://github.com/travis-ci-tester/travis-test-boost

@ghost ghost assigned glynos Oct 27, 2013
@glynos
Copy link
Member

glynos commented Oct 27, 2013

This effort is really much appreciated (and I love that we can build and test on both GCC and Clang) but I have two questions:

  • Why prefer Travis over Drone (or vice versa)?
  • Can we handle notifications? I am receiving messages from Travis that I didn't request

@ruslo
Copy link
Contributor Author

ruslo commented Oct 27, 2013

Why prefer Travis over Drone (or vice versa)?

  • drone.io don't support pull request hook (main reason, IMHO)
  • travis config is part of git repo
  • you can hold two branches with different configs, like linux + mac
  • though drone is faster (I mean fast response for commit)
  • you can have both (:

Need for investigation:

  • do drone.io support matrix system (like release/debug + static/shared)
  • do drone.io support macosx (xcode, ios simulator, libcxx)

Can we handle notifications?

I think yes. You can set blacklist, whitelist branches:
http://about.travis-ci.org/docs/user/build-configuration/
You can turn off notification or set recipients list:
http://about.travis-ci.org/docs/user/notifications/

I am receiving messages from Travis that I didn't request

Do you receive messages about pull request or about all my commits from my fork? (28 builds)

BTW you can skip ci test by adding '[ci skip]' to commit message:
http://about.travis-ci.org/docs/user/how-to-skip-a-build/

@ruslo
Copy link
Contributor Author

ruslo commented Oct 27, 2013

I am receiving messages from Travis that I didn't request

I found this two letters with you in cc-list:
[Failed] ruslo/uri#20 (linux.travis-ci - 7e21917)
[Failed] ruslo/uri#23 (travis-ci.linux - 7e21917)
both commits don't have travis config file, may be it's bug (?)
I think may be it's because I add and remove config file (?) Or may be I create branch without any change
using browser (?)

@glynos glynos merged commit 9b9c62f into cpp-netlib:master Oct 27, 2013
@ruslo ruslo deleted the travis-ci.linux branch October 27, 2013 10:02
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