From 3f441f0c954bee9a633120e7f999a879bb0fcc82 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 26 Feb 2018 09:40:49 +0100
Subject: [PATCH] Allows STABLE flag to have an influence on the channels to
 use

---
 gitlab/before_build.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh
index 4dcc7dd..655ff47 100755
--- a/gitlab/before_build.sh
+++ b/gitlab/before_build.sh
@@ -28,7 +28,11 @@ ssl_verify: false #!final
 channels: #!final
 EOF
 
-set_conda_channels ${VISIBILITY} ${CI_COMMIT_TAG}
+if [[ "${STABLE}" == "true" ]]; then
+  set_conda_channels ${VISIBILITY} "stable"
+else
+  set_conda_channels ${VISIBILITY} ${CI_COMMIT_TAG}
+fi
 for k in "${CONDA_CHANNELS[@]}"; do
   echo "  - ${DOCSERVER}/${k}" >> ${CONDARC}
 done
-- 
GitLab