summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-01-23 08:25:11 -0500
committerGitHub <noreply@github.com>2020-01-23 08:25:11 -0500
commitcb38b91c287dd62c22e7faa16628acda47f2c745 (patch)
tree20b1c1f0d8a96f830a15778100404e3e5ba11a67 /.travis.yml
parent352c3941f5f9525a29c705d297461fe73c0640a6 (diff)
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.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 328b44717d..a763066a9a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,16 +47,16 @@ stages:
- name: Build process
- name: Artifacts validation
- name: Artifacts validation on bare OS, stable to current lifecycle checks
- if: branch = master AND (type = pull_request OR type = cron)
+ if: branch = master AND (type = pull_request OR (type = cron AND env(RUN_NIGHTLY) = yes))
# Nightly operations
- name: Nightly operations
- if: branch = master AND type = cron
+ if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
- name: Nightly release
- if: branch = master AND type = cron
+ if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
- name: Trigger deb and rpm package build (nightly release)
- if: branch = master AND type = cron
+ if: branch = master AND type = cron AND env(RUN_NIGHTLY) = yes
# Scheduled releases
- name: Support activities on main branch