27 Commits

Author SHA1 Message Date
Azat Khuzhin
58e853f2c5
travis: use homebrew via addon (-~4min/16% from the build time) 2018-11-05 23:20:13 +03:00
Azat Khuzhin
0345adf7e4
travis-ci: exclude appveyor branches 2018-11-05 18:02:05 +03:00
Azat Khuzhin
5264c03f8a
travis-ci: do not notify irc.oftc.net#libevent
I think that this just introduce noise that people just turns off. So
very questionable let's remove it.
2018-10-28 01:21:35 +03:00
Azat Khuzhin
2f43d1d409
Disable parallel jobs for the osx (due to CPU time deficit) in travis-ci
As you can see right now linux workers has zero failed tests, while osx
workers has 18 failed tests:
  [bufferevent_connect_hostname_emfile FAILED]
  [bufferevent_pair_release_lock FAILED]
  [bufferevent_timeout FAILED]
  [bufferevent_timeout_filter FAILED]
  [bufferevent_timeout_pair FAILED]
  [common_timeout FAILED]
  [del_wait FAILED]
  [immediatesignal FAILED]
  [loopexit FAILED]
  [loopexit_multiple FAILED]
  [monotonic_res FAILED]
  [no_events FAILED]
  [persistent_active_timeout FAILED]
  [persistent_timeout_jump FAILED]
  [signal_switchbase FAILED]
  [signal_while_processing FAILED]
  [simpletimeout FAILED]
  [usleep FAILED]

And this patch should remove from this list time related failures
(though maybe not all of them).
2018-10-22 01:11:03 +03:00
Azat Khuzhin
5d3e8c15e7
Use matrix.fast_finish for the travis-ci to mark the build ASAP
AFAIR there is shortage of osx workers on travis-ci, IOW builds that
requires them can wait fair amount of time in the queue by just waiting.

Plus linux workers AFAICS can run multiple jobs in parallel (4-5), while
osx does not.

Hence if we do allow failures for osx (and right now they have a lot of
failed tests) let's mark build result based on tests under linux only.

So in a nut shell this will reduce build time from 5 hours to 20-30
minutes.
2018-10-22 01:10:17 +03:00
Azat Khuzhin
fb090aa622
Revert "travis-ci: use travis_retry to reduce number of problems with flacky tests"
That was a bad idea, because all this patch did is just uses extra CPU
time on travis-ci workers and eventually fail the build anyway.

It also increases time of executing one matrix entry (x3).

This reverts commit 7004ee8e869faabe3a284fb3d7eb859fb50ef90c.
2018-10-21 03:19:53 +03:00
Philip Prindeville
24236aed01
Tell Travis to use quiet git clone
Otherwise the logs show a bunch of pointless progress, which is
really only useful for interactive sessions.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Closes: #651 (cherry-picked)
2018-06-21 10:05:24 +03:00
Azat Khuzhin
da028dec49 travis-ci: allow tests under osx to fail (temporary, until we will fix them) 2018-04-24 02:56:42 +03:00
Azat Khuzhin
83b1584700 travis-ci: do not run coverage on osx
First of all we don't really need two of them, and also with apple-clang
it will fail (because of our checks in cmake), so just exclude it from
the build matrix.
2017-03-12 15:01:09 +03:00
Azat Khuzhin
7004ee8e86 travis-ci: use travis_retry to reduce number of problems with flacky tests 2017-03-12 13:21:53 +03:00
Azat Khuzhin
c199df7bc7 travis-ci: remove -DEVENT__ENABLE_VERBOSE_DEBUG=ON (too much useless logs)
I guess we can revert part of 59649f7 commit, we tried, but it adds more problems than solves.

Refs: https://github.com/libevent/libevent/pull/476#issuecomment-284259602
2017-03-06 02:56:27 +03:00
Azat Khuzhin
108b5fef41 Run tests in parallel (they are lightweight), on CI and vagrant boxes
By default 20 parllel jobs, but one caveat for travis-ci, osx boxes
there slower and have less resources then linux (discovered during
testing), so limit number of parallel jobs to 4 there, and also install
travis_wait, so that travis-ci will not fail the build when there is no
output for 10 minutes, since for osx boxes it is very likely.

Refs: travis-ci/travis-ci@7202
2017-01-22 03:22:27 +03:00
Azat Khuzhin
2a67f4fc12 travis-ci: install cmake from xenial (CTEST_PARALLEL_LEVEL support)
cmake supports it since 3.0 I guess.

And it must be trusty (not precise), otherwise it fails:
  dpkg: error processing
  /var/cache/apt/archives/ifupdown_0.8.10ubuntu1_amd64.deb (--unpack):
   trying to overwrite '/etc/init.d/networking', which is also in package netbase 4.47ubuntu1

Link: https://travis-ci.org/azat/libevent/jobs/193744023
2017-01-22 03:22:27 +03:00
Azat Khuzhin
e4e099bdb5 travis-ci/osx: install lcov 2016-11-04 03:28:42 +03:00
Azat Khuzhin
9ac000c724 Use coveralls.io via travis 2016-11-02 15:42:16 +03:00
Azat Khuzhin
7e12e96e7f travis-ci: use container-based infrastructure
- by disabling sudo
- and since we use addons.apt.packages we don't need apt-get update, that requires sudo

Link: https://docs.travis-ci.com/user/migrating-from-legacy/
2016-10-17 01:30:54 +03:00
Azat Khuzhin
9d2f8d4b80 travis-ci/osx: fix compiling/linking openssl libraries
And we need that $(echo /path/*) otherwise bash will expand it only during
assignment that variable to another one, and this doesn't work correctly.
2016-10-17 01:04:05 +03:00
Azat Khuzhin
d7ceae593a travis-ci: use gcc-5 (fixes osx|gcc failures)
Refs: travis-ci/travis-ci#4587
2016-10-16 23:34:08 +03:00
Azat Khuzhin
685a6a1917 travis: split long lines, and make it cleaner 2016-08-11 09:28:14 +03:00
Azat Khuzhin
088ea5e0b7 travis: fix autotools on osx by reinstalling libtool
Link: mkrufky/libdvbtee#22
2016-08-11 00:18:04 +03:00
Azat Khuzhin
481481d3f5 travis-ci/osx: relink gcc/g++ instead of clang
Since by default osx replaces /usr/bin/gcc with it's apple clang, while we have
gcc in our build matrix, so use real gcc.
2016-05-10 18:17:25 +03:00
Azat Khuzhin
79917e48ba travis-ci: enable multi-os mode (osx, linux)
- use addons.apt.packages instead of `apt-get install`
- add `brew update`/`brew install ...`

Link: https://docs.travis-ci.com/user/installing-dependencies/
Link: https://docs.travis-ci.com/user/multi-os/
2016-05-10 08:29:56 +03:00
Azat Khuzhin
59649f74c2 travis-ci: increase matrix (--disable-foo)
Use --disable-foo from
https://github.com/libevent/libevent/wiki/ReleaseChecklist
2016-05-09 23:30:56 +03:00
Azat Khuzhin
c8be33952e travis-ci: adjust alignment 2016-05-09 18:58:42 +03:00
Azat Khuzhin
3e56da238c travis: add builds without debug mode into matrix
To cover compilation with this flag, since brew for example uses it by default.
2015-09-30 11:13:44 +03:00
Mark Ellzey
37453aba99 Update travis config for status updates 2015-05-12 15:43:03 -04:00
Joakim Soderberg
8c0f0a9b0e Added a Travis-CI configuration file.
Initial stab at a first Travis config file.
2014-01-24 18:24:38 +01:00