centreon / centreon-nsclient-build

Source use to build the centreon NSClient agent
19 stars 3 forks source link

Travis CI build #21

Closed UrBnW closed 4 years ago

UrBnW commented 4 years ago

Hi,

As briefly discussed in #16, here's a Travis-CI configuration to automatically build the plugins. It builds everything :

Version numbers are properly set according to the check_logfiles & centreon-plugins submodules' version.

If build is done for the master branch, binaries are made available through a new GitHub release.

Here's a build log example : https://travis-ci.org/github/UrBnW/centreon-nsclient-build/builds/729273397

And here's a release example : https://github.com/UrBnW/centreon-nsclient-build/releases/tag/200922105857

To trigger a new build & release upon Centreon Plugins changes, you then just have to update (pull) the centreon-plugins submodule, and push this new version. Same for check_logfiles plugin. That's all :)

Of course, you'll have to enable Travis-CI for this centreon/centreon-nsclient-build repository. And to update the api_key.secure option in the .travis.yml file.

Thank you :+1:

UrBnW commented 4 years ago

This CI auto-build now also builds check_logfiles plugin 👍

Sims24 commented 4 years ago

Hi @UrBnW

Give us some time to setup a dedicated account to connect TravisCI and github and we will merge it ;)

Thanks

UrBnW commented 4 years ago

Hi @Sims24, sure, very good news, many thanks for your feedback 👍

travisci-centreon-plugins commented 4 years ago

@UrBnW , let's do it

UrBnW commented 4 years ago

Take care linking your project with Travis-CI, be sure to use the free version at https://travis-ci.org.