You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2018/02/21 18:07:05 UTC

[arrow] branch master updated: ARROW-2192: [CI] Always build on master branch and repository

This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 90bdfb5  ARROW-2192: [CI] Always build on master branch and repository
90bdfb5 is described below

commit 90bdfb50698f592034f4a8170ee6ab960f68eb85
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Wed Feb 21 13:06:59 2018 -0500

    ARROW-2192: [CI] Always build on master branch and repository
    
    Author: Antoine Pitrou <an...@python.org>
    
    Closes #1634 from pitrou/ARROW-2192-always-build-on-master and squashes the following commits:
    
    c7a87805 [Antoine Pitrou] ARROW-2192: [CI] Always build on master branch and repo [skip travis] [skip appveyor]
---
 ci/travis_detect_changes.py | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/ci/travis_detect_changes.py b/ci/travis_detect_changes.py
index 2aeb34f..d60b132 100644
--- a/ci/travis_detect_changes.py
+++ b/ci/travis_detect_changes.py
@@ -147,19 +147,25 @@ def get_unix_shell_eval(env):
 
 
 def run_from_travis():
-    desc = get_travis_commit_description()
-    if '[skip travis]' in desc:
-        # Skip everything
-        affected = dict.fromkeys(ALL_TOPICS, False)
-    elif '[force ci]' in desc or '[force travis]' in desc:
-        # Test everything
+    if (os.environ['TRAVIS_REPO_SLUG'] == 'apache/arrow' and
+        os.environ['TRAVIS_BRANCH'] == 'master' and
+        os.environ['TRAVIS_EVENT_TYPE'] != 'pull_request'):
+        # Never skip anything on master builds in the official repository
         affected = dict.fromkeys(ALL_TOPICS, True)
     else:
-        # Test affected topics
-        affected_files = list_travis_affected_files()
-        perr("Affected files:", affected_files)
-        affected = get_affected_topics(affected_files)
-        assert set(affected) <= set(ALL_TOPICS), affected
+        desc = get_travis_commit_description()
+        if '[skip travis]' in desc:
+            # Skip everything
+            affected = dict.fromkeys(ALL_TOPICS, False)
+        elif '[force ci]' in desc or '[force travis]' in desc:
+            # Test everything
+            affected = dict.fromkeys(ALL_TOPICS, True)
+        else:
+            # Test affected topics
+            affected_files = list_travis_affected_files()
+            perr("Affected files:", affected_files)
+            affected = get_affected_topics(affected_files)
+            assert set(affected) <= set(ALL_TOPICS), affected
 
     perr("Affected topics:")
     perr(pprint.pformat(affected))

-- 
To stop receiving notification emails like this one, please contact
wesm@apache.org.