소스 검색

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

Hamilton Turner 11 년 전
부모
커밋
d290921e08
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  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.