build: Set opcache.enable_cli=1 for Travis CI builds
authorRazeSoldier <razesoldier@outlook.com>
Thu, 6 Jun 2019 08:57:51 +0000 (08:57 +0000)
committerKrinkle <krinklemail@gmail.com>
Sun, 9 Jun 2019 16:42:30 +0000 (16:42 +0000)
Make test process faster. The code refer <https://docs.travis-ci.com/user/languages/php/>.

Bug: T225078
Change-Id: I8c4e87f75108cfbece17506aa630b205aabaab4b

.travis.yml

index e4a173d..ada60e4 100644 (file)
@@ -58,6 +58,7 @@ addons:
     - tidy
 
 before_script:
+  - echo 'opcache.enable_cli = 1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
   - composer install --prefer-source --quiet --no-interaction
   - if [ "$dbtype" = postgres ]; then psql -c "CREATE DATABASE traviswiki WITH OWNER travis;" -U postgres; fi
   - >