You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2020/12/10 02:50:27 UTC
[incubator-pinot] branch master updated: Update .travis.yml (#6342)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 7c0e22d Update .travis.yml (#6342)
7c0e22d is described below
commit 7c0e22d693e3b049069c677bccff899ce06ad3da
Author: Jayesh Bapu Ahire <ja...@gmail.com>
AuthorDate: Thu Dec 10 08:20:11 2020 +0530
Update .travis.yml (#6342)
---
.travis.yml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index 6f26380..b7cd455 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,21 @@ language: java
os: linux
dist: trusty
+# Prevent test build of a documentation-only change.
+#
+# if: conditions are preferred as they obviate job creation. However, they can only use
+# pre-defined env variables or globals that can be evaluated statically. The other way to skip
+# is to exit early. We do that here to prevent overhead of running tests that only include Markdown
+# (documentation) updates.
+_terminate_if_only_docs: &terminate_if_only_docs
+ - |
+ if [ -n "${TRAVIS_COMMIT_RANGE}" ] && ! git diff --name-only "${TRAVIS_COMMIT_RANGE}" -- | grep -qv '\.md$'; then
+ echo "Stopping job as changes only affect documentation (ex. README.md)"
+ travis_terminate 0
+ fi
+
before_install:
+ - *terminate_if_only_docs
- sudo apt-get update && sudo apt-get install -y --no-install-recommends gdb
- mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && chmod +x ~/bin/jq
- export PATH=$PATH:~/bin
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org