[TASK] Travis: PHP 7 & botty 15/42415/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Aug 2015 15:41:38 +0000 (17:41 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Aug 2015 16:31:33 +0000 (18:31 +0200)
* Enable a notification for botty
* Enable functionals & linting for php 7
* Do not load memcache & redis on php 7

Change-Id: I006dca89658d7ef8b2d908a6ea7e2f784f1fdcf4
Resolves: #68863
Releases: master
Reviewed-on: http://review.typo3.org/42415
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
.travis.yml

index 17d6e01..6618851 100644 (file)
@@ -11,7 +11,7 @@ matrix:
     - php: 5.6
       env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes
     - php: 7
-      env: UNIT_TESTS=yes
+      env: UNIT_TESTS=yes FUNCTIONAL_TESTS=yes PHP_LINT=yes
 
 sudo: false
 
@@ -44,10 +44,19 @@ notifications:
       secure: nHWVTPyG3CQWIcYA1LASS11dD0/NBcmrAyr3xxQW0XYtH47ZUKRlEtxrVLuL7ptciNwMbfZgsiRQ1QGWDerHUlBkg0iwRxpUZgeylzWaiXsHFVAp2IBfEX54KrWeYm9gewIBDDtnp+sLgpXGgmpIs2bAGkZe5129UsUExoWh0+g=
     on_success: change
     on_failure: always
+  webhooks:
+    urls:
+      - http://www.t3bot.de/hooks/travis
+    on_success: always
+    on_failure: always
+    on_start: never
 
 before_script:
-  - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
-  - if [ -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
+  - >
+    if [[ "$TRAVIS_PHP_VERSION" < "7" && -e ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ]]; then
+        echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+        echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+    fi
   - rm -rf typo3/sysext/compatibility6
   - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
   - composer install