summaryrefslogtreecommitdiffstats
path: root/.travis.yml
AgeCommit message (Collapse)Author
2020-10-26Updated distros for CI checks and package builds. (#10123)Austin S. Hemmelgarn
* Alpine 3.12 has been out for multiple months. * Fedora 33 is slated for release on 2020-10-27, the current beta is functionally a release preview. * Fedora 31 will be EOL as of 2020-11-27, any existing users should have updated by then. * Ubuntu 20.10 is slated for release on 2020-10-22, the currently available system images are functionally a release preview. * Ubuntu 19.10 went EOL on 2020-07-17. * Our packaging code was missing a number of distros we technically support which we appear to build packages correctly for.
2020-10-12Skip all build checks on packaging builds. (#10058)Austin S. Hemmelgarn
Package build runs on Travis only happen as part of release builds. Because they happen _after_ the rest of the release, the build checks have already run at least once because they're run as part of the initial release build. As such, there’s no point in running them again on the packaging builds, especially since they are the primary reason that the packaging builds experience transient errors.
2020-09-10Correctly fix handling of CI Slack notifications. (#9902)Austin S. Hemmelgarn
2020-09-08Make internal Travis CI notifications behave better. (#9897)Austin S. Hemmelgarn
* Add failure messages for package build checks. * Make notifications only happen for master branch.
2020-08-20Don't run packaging checks on Travis builds that build packages. (#9795)Austin S. Hemmelgarn
* Revert "Fix Travis CI builds and skip Fedora 31 i386 build/test cycles (#9781)" This reverts commit 07e67c4b62b100ab048070f1a0291fe904ff7513. This will be fixed differently. * Skip package build checks on builds that build packages. We don't need to check that package builds work if we're actually building packages.
2020-08-13Removed Ubuntu 20.04 32-bit x86 package builds. (#9718)Austin S. Hemmelgarn
Our current infrastructure depends on availability of appropriate architecture LXC containers for the distros we're building for, and there are no 32-bit x86 LXC images for Ubuntu 20.04, so we cannot build these packages.
2020-08-07Add support for DEB packages for Ubuntu 20.04 (focal) (#9592)James Mills
* Add support for Ubuntu 20.04 DEB packages * Add Travis config to also build the DEB packages for Ubuntu 20.04 (focal)
2020-08-04Fix Travis config (#9655)James Mills
2020-08-03Fix Travis CI and remove deprecated/removed builds that have no upstream LXC ↵James Mills
image (#9630)
2020-07-30Added eBPF collector support to DEB and RPM packages. (#9628)Austin S. Hemmelgarn
* Add DEB/RPM package build tests to Travis. * Add working support for bundling eBPF in binary packages. * Show stdout and stderr from commands run in LXC. * Add proper bundling code for libbpf. * Use AC_CHECK_FILE for libbpf.a external dep. This way it gets properly logged in both configure output and the configure log.
2020-07-14Remove Fedora 30 from CI. (#9274)Austin S. Hemmelgarn
It went EOL on 2020-05-26.
2020-04-23packaging/docker/{build,publish}.sh: Simplify scripts. Support only single ↵Konstantinos Natsakis
ARCH (#8747) * packaging/docker/{build,publish}.sh: Simplify scripts. Support only single ARCH * packaging/docker/build.sh: Remove eval
2020-04-14packaging/docker/{build,publish}.sh: Remove DEVEL support (#8702)Konstantinos Natsakis
2020-04-03Correctly fixed RPM package builds on Fedora. (#8595)Austin S. Hemmelgarn
* Revert "Fix broken Fedora 30/31 RPM builds (#8572)" This reverts commit 71290d9cb904e8ea08456e5c4ab24bc274e593bf. It didn't actually fix things and caused a different set of issues. * Build LWS and mosquitto with -fPIC in RPM builds. This fixeslinking errors that are currently causing RPM package build failures for Fedora 30/31.
2020-04-02Fix broken Fedora 30/31 RPM builds (#8572)James Mills
2020-03-26Fix openSUSE 15.1 RPM Package Buidls (#8494)James Mills
2020-03-14Migrate Tests from Travis CI to Github Workflows (#8331)James Mills
* Migrate Tests from Travis CI to Github Workflows * Use GHA path filters * Make a unit test fail * Run new cmocka based unit tests * Revert "Make a unit test fail" This reverts commit 15500c59e4d49cb478ef27289de0366a543815c5. * Make a cmocka unit test fail * Work around a bug in libbson-1.0 on Ubuntu 18.04 * Add DCMAKE_BUILD_TYPE=Debug to make dbengine tests pass * Upload LastTest.log to GHA Artifact storage * Revert "Make a cmocka unit test fail" This reverts commit 920f56a03d0479bec1a67dc8c242df189f702177. * Remove Artifacts Validation stage
2020-03-13Migrate make dist validation to GHA Workflows (#8373)James Mills
* Migrate make dist validation to GHA Workflows * Refactor run_install_with_dist_file.sh
2020-03-12Fix Travis configuration for nightly builds. (#8376)Austin S. Hemmelgarn
2020-03-10Remove possible erroneous blank line causing Travis to fail possibly and ↵James Mills
default to magical behaviour (#8355)
2020-03-10Migrate coverity-scan to Github Actions (#8321)James Mills
* Migrate coverity-scan to Github Actions * Move to job conditional and use local install-required-pacakges.sh * Add COVERITY_* secrets and add them to the Github secrets store with values from Travis copied over
2020-03-10Consolidate and clean up artifact validation. (#8352)Austin S. Hemmelgarn
* Consolidate and clean up artifact validation. This consolidates the two separate 'Artifacts Validation' stages we have in Travis into a single stage,a s well as fixing an error in the handling of the lifecycle checks. Overall, this should improve build times for Travis CI checks due to a deduplication of certain lifecycle checks and an overall increase in the parallelizability of the jobs within the stage. * Fix lifecycle check retry logic.
2020-03-09Migrate Travis based checks to Github Actions (#8329)James Mills
* Migrate Travis based checks to Github Actions * Remove Gitlab CI config * Remove ./build/build.sh and use simple shell to do consistency checks on Dashbaord JS * Install prereq deps * Rename job * Fix brain fart momemt * Split Dashboard checks into a separate job
2020-03-07Add retries for more Travis transient failures (#8327)James Mills
2020-03-06Remvoed the use of clang-format that does not actually block PRs or surface ↵James Mills
anything to developers #8188 (#8196) * Remvoed the use of clang-format that does not actually block PRs or surface anything to developers * Reopen PR
2020-03-04Add yamllint to reviewdog PR checks. (#8291)Austin S. Hemmelgarn
2020-03-04Fixed Travis CI build handling. (#8288)Austin S. Hemmelgarn
* Fixed Travis CI build handling. We need to properly quote YAML metacharacters. * Update pre-generated dashboard.js.
2020-03-02Fix misspelling of openSUSE and SUSE (#8233)Martin Rey
2020-02-27Retry transient failures from our lifecycle tests on Travis CI (#8203)James Mills
2020-02-22Remove Fedora 29 from CI and packaging. (#8100)Austin S. Hemmelgarn
It went EOL upstream on 2019-11-26.
2020-02-22Remove Ubuntu 19.04 from CI and packaging. (#8040)Austin S. Hemmelgarn
It went EOL with no continuing upstream support on 2020-01-23.
2020-02-22Remove OpenSUSE Leap 15.0 from CI. (#7990)Austin S. Hemmelgarn
Official upstream support for 15.0 ended on 2019-12-03, more than 3 months ago.
2020-01-29Add release channel customization to docker build (#7373)Mansour Behabadi
* Add release channel customization to docker build * Add release channel to travis config * Build releases with stable channel * Update packaging/docker/build.sh Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com> * Update packaging/docker/build.sh Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com> Co-authored-by: Mansour Behabadi <mansour@oxplot.com> Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2020-01-29.travis.yml: Add -fno-common to CFLAGS (#7870)Craig Andrews
-fno-common will be set by default in GCC 10, see https://gcc.gnu.org/PR85678 Therefore, netdata should test with that configuration to be ready for this change. See https://github.com/netdata/netdata/issues/7869
2020-01-23Add an environment variable check to allow disabling nightlies. (#7765)Austin S. Hemmelgarn
This adds a check to the nightly build stages to allow skipping them if a specific environment variable is not set by Travis. This allows us to disable nightlies by removing the environment variable instead of needing to remove the cron job itself, thus ensuring that nightlies keep happening at the same time each day regardless. The specific variable is named `RUN_NIGHTLY`, and must be set to 'yes' to enable nightly builds.
2020-01-16Move the script for installing required packages into the main repo. (#7563)Austin S. Hemmelgarn
* Move the script for installing required packages into the main repo. Based on discussion with Costa. Most of what this script is actually used for directly is in the main repo anyway, so it makes more sense to have it there so that any changes get reviewed properly. * Fix typo in RPM package build setup.
2020-01-14.travis.yml: Reduce notifications (#7714)Konstantinos Natsakis
2020-01-08Switch PR labeling to use GitHub Actions. (#7630)Austin S. Hemmelgarn
This decouples the PR labeling process from the main CI process, allowing them to run completely independenly of each other. The new labeling configuration is based on copying, extending, and correcting the existing labeling rules in the `labeler.sh` script which the commit is removing. Labeling is configured through `.github/labeler.yml` file. Check there for info on the exact format. The exact configuration being used will update labels on PR's whenever one is opened, updated, reopened, or marked ready for review. It will not remove existing labels from the PR, only add new ones.
2020-01-03Remove EOL distros from CI jobs. (#7628)Austin S. Hemmelgarn
* Remove Fedora 28 from the lifecycle checks. It's been EOL since 2019-05-28, and anybody continuing to use it is recieving no support from upstream _or_ the Fedora community. * Remove Ubuntu 18.10 from package builds. It's been EOL since 2019-07-18, and anybody continuing to use it is recieving no support from upstream or the Ubuntu community. * Update docs.
2020-01-02Add Ubuntu 19.10 to packaging and lifecycle checks. (#7629)Austin S. Hemmelgarn
* Add Ubuntu 19.10 to packaging and lifecycle checks. It's been out since 2019-10-07. * Update docs.
2020-01-02Limit 'support activities on main branch' to main repo. (#7543)Austin S. Hemmelgarn
This adds a check to prevent the 'Support activities on main branch' stage from running on forked repos. In such repos, it will automatically fail without special effort from the user, requiring them to carry local patches on their master branch. Without this, CI builds of the 'master' branch will fail for users who do not go through the effort of setting up the custom patches to disable this stage in their repo.
2019-12-20packaging: Set default release channel to stable for gh releases (#7399)Mansour Behabadi
* packaging: Set default release channel to stable for gh releases * Leave kickstart files alone * Update .travis/create_artifacts.sh Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com> Co-authored-by: Mansour Behabadi <mansour@oxplot.com> Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2019-12-19Skip unit testing during CI when it's not needed. (#7559)Austin S. Hemmelgarn
* Skip unit testing during CI when it's not needed. Our current unit testing takes almost 20 minutes on average during the CI process, which is almost twice as long as any other step, and it's only going to get longer as we get better test coverage. This commit slightly alters how we handle unit testing during CI so that only those unit tests which are actually needed get run. This is achieved by using the `$TRAVIS_COMMIT_RANGE` environment variable provided by Travis to determine which commits we're actually testing, and then using that information to query Git for what files actually changed. As of right now, the only unit testing we're doing is in the dbengine code, so we check to see if any of those files or the C unit testing files are modified by the PR and only runs the unit tests for those if they were modified. The checks are a bit more wide-ranging than they probably need to be so that we make sure to avoid any false negatives. This should speed up CI checks for PR's (as well as not monopolizing the master branch after every PR that gets merged). * Restructure to better handle PR's. The previous code did not work correctly with PR's because it ignored the fact that Travis does not appear to report the full list of commits for a PR in `TRAVIS_COMMIT_RANGE`, instead only reporting the most recent set of commits that were pushed. * Add listing of commits being checked. This will allow for verification of what is being tested, making it easier to spot issues with the detection logic. * Don't assume PR's are targeting the master branch.
2019-12-17Merge the matrix and jobs keys in Travis config. (#7544)Austin S. Hemmelgarn
The `matrix` key is officially deprecated and gets auto-merged with the `jobs` key during config parsing. If this auto-merging occurs, then the config will fail config validation, which will in turn cause odd failues during the build because of how Travis handles config validation (namely, it falls back to a default config for the detected language). This change allows us to enable the Config Validation feature in Travis, which will in turn cause the build to fail very quickly if the configuration is invalid in some way.
2019-12-17Add Fedora 31 CI integrations. (#7524)Austin S. Hemmelgarn
* Add a job to build and publish Fedora 31 RPMs Fedora 31 was released on 2019-10-29. * Also enable Fedora 31 lifecycle checks. Previously disabled because Fedora 31 was not yet released at the time.
2019-12-13Minor docker related cleanups (#7240)Konstantinos Natsakis
* .travis.yml: Do not define docker service It is already there for the bionic image * .travis.yml: Do not attempt to upgrade docker-ce package It is already in the latest version for bionic image * .travis.yml: Do not run docker info Travis runs docker version by default
2019-12-12.travis.yml: Add timestamps to output (#7239)Konstantinos Natsakis
* .travis.yml: Add timestamps to output * .travis.yml: Use '%H:%M:%.S' intead of '%.T' Because %.T is not availabe in moreutils 0.60-1 * .travis.yml: Add timestamps to stderr as well * .travis.yml: Add extra space to timestamp format for better readability
2019-12-10ci: remove ubuntu trusty 14.04 from build (#7481)Mansour
* ci: remove ubuntu trusty 14.04 from build * Update packaging matrix with ubuntu 14.04 changes
2019-12-04.travis.yml: Remove CentOS 6 package building and lifecycle tests (#7425)Konstantinos Natsakis
2019-11-14Updating the Travis pipeline (issue 7189) (#7312)Andrew Moss
Added a linting pass. This is non-blocking but will output a measure of how much each .c and .h file deviates from our current .clang format. Changed the standard build to include all of the warning that we are using in dev. Added the dependencies for dbengine and confirmed that the standard build enables dbengine. Fixed the original warnings.