@cryptotaxi247 / netdata-1 / commits / 1c1283231

Merge the matrix and jobs keys in Travis config. (#7544)

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.

Austin S. Hemmelgarn committed Dec 17, 2019 at 07:15 UTC 1c12832310445603644ed18ad19ebf3b91ad4480
1 file changed +3 -5
.travis.yml
+3 -5
@@ -5,11 +5,6 @@ addons:
5 apt:
6 packages: ['moreutils']
7
8 -# This is a hook to help us introduce "soft" errors on our process
9 -matrix:
10 - allow_failures:
11 - - env: ALLOW_SOFT_FAILURE_HERE=true
12 -
8 before_install:
9 - exec > >(ts -s '%H:%M:%.S ') 2>&1
10 - source .travis/utils.sh
@@ -96,6 +91,9 @@ stages:
91 # Define stage implementation details
92 #
93 jobs:
94 + # This is a hook to help us introduce "soft" errors on our process
95 + allow_failures:
96 + - env: ALLOW_SOFT_FAILURE_HERE=true
97 include:
98 # Do code quality, syntax checking and other pre-build activities
99 - stage: Code quality, linting, syntax, code style