فهرست منبع

pull base images only if test should run (#3486)

Nate 7 سال پیش
والد
کامیت
8f0898938b
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      .travis.yml

+ 3 - 3
.travis.yml

@@ -197,9 +197,6 @@ env:
      - "TESTDIR=Vala/vsgi"
      - "TESTDIR=Vala/valum"
 
-install:
-  - docker pull techempower/tfb.wrk
-  - docker pull techempower/tfb
 
 before_script:
 
@@ -207,6 +204,9 @@ before_script:
   # to determine if the suite should be installed and the current $TESTDIR test should run.
   - export RUN_TESTS=`./toolset/travis/travis_diff.py | tee /dev/tty | grep -oP "travis-run-tests \K(.*)"`
 
+  - if [ "$RUN_TESTS" ]; then docker pull techempower/tfb.wrk; fi
+  - if [ "$RUN_TESTS" ]; then docker pull techempower/tfb; fi
+
   # Stop services that would claim ports we may need
   - sudo service mysql stop
   - sudo service postgresql stop