aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/ci-user-overlay.sh
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2017-03-13 19:53:00 +0100
committerEmilio Jesus Gallego Arias2017-03-13 20:01:23 +0100
commit2cee6aa7a30b39c53e23fc69f0b9e7754ebee740 (patch)
tree97fca27eed7758c2e9cb2e862ba32ba697c1eee0 /dev/ci/ci-user-overlay.sh
parentecacc9af6100f76e95acc24e777026bfc9c4d921 (diff)
[travis] Basic support for overlays.
We now allow the user to overlay contribution repositories and branches by adding their own rules to `ci-basic-overlay.sh`. This just provides very basic support.
Diffstat (limited to 'dev/ci/ci-user-overlay.sh')
-rw-r--r--dev/ci/ci-user-overlay.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev/ci/ci-user-overlay.sh b/dev/ci/ci-user-overlay.sh
new file mode 100644
index 0000000000..0285747432
--- /dev/null
+++ b/dev/ci/ci-user-overlay.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Add user overlays here. You can use some logic to detect if you are
+# in your travis branch and conditionally enable the overlay.
+
+# Some useful Travis variables:
+# (https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)
+#
+# - TRAVIS_BRANCH: For builds not triggered by a pull request this is
+# the name of the branch currently being built; whereas for builds
+# triggered by a pull request this is the name of the branch
+# targeted by the pull request (in many cases this will be master).
+#
+# - TRAVIS_COMMIT: The commit that the current build is testing.
+#
+# - TRAVIS_PULL_REQUEST: The pull request number if the current job is
+# a pull request, “false” if it’s not a pull request.
+#
+# - TRAVIS_PULL_REQUEST_BRANCH: If the current job is a pull request,
+# the name of the branch from which the PR originated. "" if the
+# current job is a push build.
+