Browse Source

Print commit range from run-ci.py, not .travis.yml

Hamilton Turner 11 years ago
parent
commit
d290921e08
2 changed files with 5 additions and 3 deletions
  1. 0 3
      .travis.yml
  2. 5 0
      toolset/run-ci.py

+ 0 - 3
.travis.yml

@@ -176,9 +176,6 @@ install:
   # Install server prerequisites
   - time ./toolset/run-ci.py prereq $TESTDIR
 
-  # Add commit diff to the logs
-  - echo $TRAVIS_COMMIT_RANGE
-  - git diff --name-only $TRAVIS_COMMIT_RANGE
 script: 
   # Run test verification 
   - time ./toolset/run-ci.py test $TESTDIR

+ 5 - 0
toolset/run-ci.py

@@ -57,6 +57,11 @@ class CIRunnner:
       last_commit = subprocess.check_output("git rev-parse HEAD^", shell=True).rstrip('\n')
       self.commit_range = "master...%s" % last_commit
 
+    log.info("Using commit range %s", self.commit_range)
+    log.info("Running `git diff --name-only %s`" % self.commit_range)
+    changes = subprocess.check_output("git diff --name-only %s" % self.commit_range, shell=True)
+    log.info(changes)
+
   def _should_run(self):
     ''' 
     Decides if the current framework test should be tested or if we can cancel it.