@cryptotaxi247 / netdata-1 / commits / cb38b91c2

Add an environment variable check to allow disabling nightlies. (#7765)

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.

Austin S. Hemmelgarn committed Jan 23, 2020 at 08:25 UTC cb38b91c287dd62c22e7faa16628acda47f2c745
1 file changed +4 -4
.travis.yml
+4 -4
@@ -47,16 +47,16 @@ stages:
47 - name: Build process
48 - name: Artifacts validation
49 - name: Artifacts validation on bare OS, stable to current lifecycle checks
50 - if: branch = master AND (type = pull_request OR type = cron)
50 + if: branch = master AND (type = pull_request OR (type = cron AND env(RUN_NIGHTLY) = yes))
51
52 # Nightly operations
53 - name: Nightly operations
54 - if: branch = master AND type = cron
54 + if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
55
56 - name: Nightly release
57 - if: branch = master AND type = cron
57 + if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
58 - name: Trigger deb and rpm package build (nightly release)
59 - if: branch = master AND type = cron
59 + if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
60
61 # Scheduled releases
62 - name: Support activities on main branch