147 Commits

Author SHA1 Message Date
Rainer Gerhards
c8ad3cb27f travis: again require macOS build to succeed
We made this optional while Travis had problems with macOS builds.
2018-01-31 09:49:37 +01:00
Rainer Gerhards
317f1d71a5 travis: use minimal image for docker-based tests 2018-01-26 08:43:34 +01:00
Rainer Gerhards
9529b7eadd travis: make OSx run optional
Travis currently has some real trouble with OSx. We make it optional
so that we can cancel out without affecting overall test result.
This helps both TravisCI as well as us.

We can (and should) roll this back once the Travis issues are solved.
2018-01-18 18:16:45 +01:00
Rainer Gerhards
8fead35a0d travis: remove experimental build from build matrix
We now know it does not work, and will not fix it immediately. So
running it is just a waste of ressource.

[skip ci] - no changes other than travis config
2018-01-17 18:41:59 +01:00
Rainer Gerhards
b06a48d6b5 Travis: further collapse build matrix 2018-01-16 13:04:47 +01:00
Rainer Gerhards
89318b2dea travis: combine some build checks
... and do them via containers. This also reduces resource usage and
runtime on Travis a bit.
2018-01-15 18:07:06 +01:00
Rainer Gerhards
b89466e105 Travis: run static analyzer via standard dev container
also some improvements to somewhat optimize the build matrix so
that we avoid unnecessary work.
2018-01-14 13:56:27 +01:00
Rainer Gerhards
f356d9f399 Travis: check build on Alpine Linux and Ubunut rolling (via docker container) 2018-01-12 17:29:02 +01:00
Rainer Gerhards
06b3bbac0b Travis: run static analyzer only once
The previous settings did not make much sense (same set of source
files checked) and also made us violate our Travis permitted runtime.
So rather than splitting the test into 2 VMs, we just remove one of
the static analyzer runs.
2017-12-30 12:46:45 +01:00
Rainer Gerhards
0fcc9dc609 travis: reenable static analyzer
LLVM has changed packaging structure, this fix adapts to it. So we
now have scan-build-5.0 again.
2017-12-30 12:46:45 +01:00
Rainer Gerhards
70d37b9444 travis: add test utilizing UBSAN
closes https://github.com/rsyslog/rsyslog/issues/2106
2017-12-28 17:40:03 +01:00
Rainer Gerhards
4e04e2ee55 testbench: provide capability to split testbench
This is necessary as we hit the Travis max runtime limit per VM,
so we need to duplicate the tests. This is done via
--enable-testbench1 and --enable-testbench2 which we than use
in different VMs.

This PR also includes updates to the Travis scripts so that we
use the new capability. We have only duplicated Travis VMs where
acutally necessary -- we may need to do more of this in the future.

closes https://github.com/rsyslog/rsyslog/issues/2196
2017-12-11 11:22:14 +01:00
Dan Molik
f334e2b250 ompgsql plugin - update postgres module
The PostgreSQL output module was woefully out-of-date the following
list is changes made to update the module to current Rsyslog standards.

  - allow for v6 configuration syntax
  - configurable ports
  - support transactional interface
  - push db connection into workers (libpq is threadsafe)
  - enable module testing on travis
  - ensure configuration syntax backwards compatibility
  - formatting around postgres core templating
  - use new test conventions
  - add new configuration syntax test
  - add valgrind tests for new and old syntax
  - add threading tests
  - add action queue long running tests
  - add action queue valgrind test
2017-12-09 09:04:46 -05:00
Rainer Gerhards
a730246385 Travis: (temoporarily) disable static analyzer as it does not work
can currently not obtain necessary packages from LLVM repo
2017-12-08 10:12:37 +01:00
Rainer Gerhards
8d8abf2d9b travis: enable gcc-7 with high warning levels
see also https://github.com/rsyslog/rsyslog/pull/2121
2017-11-29 12:39:07 +01:00
Rainer Gerhards
0953b7c942 Travis: temporarily disable packages that make build fail 2017-11-25 18:46:00 +01:00
Rainer Gerhards
95dfd548b4 travis: do more checks with gcc 7 2017-11-25 15:49:05 +01:00
Rainer Gerhards
4761cbdd68 travis: add gcc-7 based compile tests 2017-11-25 15:49:05 +01:00
Rainer Gerhards
6c05f41269 Travis CI: add support for cron jobs and Coverity scan
We execute different code pathes under cron jobs. It doesn't make sense
to redo what we already did before a merge. Right now, cron builds a
Coverity scan submission and uploads it. This should be set to run
once a day.

closes https://github.com/rsyslog/rsyslog/issues/2037
2017-11-16 11:30:01 +01:00
Rainer Gerhards
07ea27a2e6 travis: enable build of gssapi components 2017-10-18 08:07:39 +02:00
Rainer Gerhards
c5af2f440e Merge pull request #1746 from mrworkman/fix-debugless-build
Fix broken 'debugless' build.
2017-09-12 18:03:45 +02:00
mrworkman
bb60c206f0 Fix broken 'debugless' build. 2017-09-12 08:01:39 -04:00
Rainer Gerhards
17c5df885e travis: do line length check only in some subtests 2017-09-11 12:53:10 +02:00
PascalWithopf
27f65eee5e codestyle: enable stylecheck 2017-06-28 15:18:54 +02:00
fa775e7590 omkafka: Added detection for broker failure and suspending/resume the action
imkafka, omkafka: switched from dynamic to static linking

Also added another test to test a typical kafka cluster failure environment.
2017-06-08 15:35:45 +02:00
Rainer Gerhards
caff8cf37b travis: add testing on osx 2017-05-15 09:05:00 +02:00
Pascal Withopf
b63a6b9010 codestyle: line length adjusted 2017-01-17 08:54:37 +01:00
Pascal Withopf
1198652e54 codestyle: check imfile.c 2017-01-11 11:45:22 +01:00
Rainer Gerhards
fd7d2c699a travis: enable CI on master branch
We tried to disable this to prevent unnecessary Travis runs after
merging changes to master, however, disabling it also disabled
checking of PRs, so we cannot do this. Thus undoing this change.
2016-12-07 19:02:41 +01:00
Rainer Gerhards
be2d828f6d travis: apply changes to support new travis images 2016-12-07 09:45:59 +01:00
Rainer Gerhards
0fd3b95ee2 travis: do not check master branch
not needed, as all changes need to go through CI
2016-12-04 10:20:03 +01:00
Rainer Gerhards
d2dca73e05 travis: work-around travis failures due to new travis images
As suggested by Travis CI support, we fall back to the previous
images until the issue is resolved.
2016-12-02 11:08:56 +01:00
Rainer Gerhards
aff40b570a travis: run elasticsearch tests in debug mode as well 2016-11-01 13:29:09 +01:00
Rainer Gerhards
0f16483a4a travis: run one travis test without assert() enabled, so that we get "production timing"
Otherwise, the assert() macros may hide timing-related bugs.
2016-10-08 17:12:36 +02:00
Rainer Gerhards
c47ae18ad9 travis: re-enable forward-compatibility test
the v8-devel PPA is now available again, so we can re-enable testing
with its help
2016-08-04 14:35:22 +02:00
Rainer Gerhards
a1bc852685 travis: disable forward-compatibility test
this needs to be done as the v8-devel PPA is no longer available
see also http://lists.adiscon.net/pipermail/rsyslog/2016-July/043092.html
2016-07-22 10:35:41 +02:00
Rainer Gerhards
9abbfc3032 travis: do a test against v8-devel PPA
This includes all current rsyslog family of libraries in their current
devel state. This helps finds intra-version bugs.
2016-07-05 11:15:21 +02:00
Rainer Gerhards
50b91a4091 travis: alternative way to install autoconf-archive
if we install via .travis.yml, we always get aborts during
the install, so we do it differently
2016-06-03 09:50:14 +02:00
Rainer Gerhards
b34897d62d travis: we need autoconf-archive 2016-06-02 13:15:10 +02:00
Rainer Gerhards
5b0e8b80d2 Merge branch 'master' into travis-es 2016-05-10 17:33:24 +02:00
Rainer Gerhards
fb6b44de0e travis: do a special run which merges with master
this guards against cross-PR regressions and also ensures that our
newest travis settings are used
2016-04-23 16:12:36 +02:00
Janmejay Singh
ec26769fca we do not seem to have librdkafka available on non-trusty travis env 2016-04-19 16:37:34 +05:30
Janmejay Singh
510569dcbc enable kafka from travis-config so install script pulls librdkafka in 2016-04-19 15:43:30 +05:30
Janmejay Singh
003b8a80ff omkafka integration test 2016-04-19 15:34:10 +05:30
Rainer Gerhards
e63099c597 travis: merge software install into script step
this provides the ability to use common logic for some
steps (will show benefits in the longer term)
2016-03-14 11:24:24 +01:00
Rainer Gerhards
ad93c77484 travis: move install step also to a custom script
also provides better ability for complex operations
2016-03-13 13:58:04 +01:00
Rainer Gerhards
f7b3c4e95c travis: use a shell script to carry out tests
this was recommended by Travis support for cases where
more logic is needed inside the script portion. Among others,
this permits to abort a build as soon a failure happens.
2016-03-12 18:05:52 +01:00
Rainer Gerhards
e1b89d6dd8 travis: enable building journal components 2016-03-10 16:10:40 +01:00
Rainer Gerhards
3d5097a681 travis: enable some more checks 2016-03-10 12:01:31 +01:00
Rainer Gerhards
df10aa508b travis: better diagnostics in static analyzer run
use "strong" warnings for the regular build, but use much
relaxed ones for the analyzer run (because otherwise it seems
to abort due to a bug in static analyzer)
2016-03-10 11:46:08 +01:00