[BUGFIX] Workspaces: Properly use slots to modify data
[Packages/TYPO3.CMS.git] / .travis.yml
index ff860c6..4648b21 100644 (file)
@@ -1,13 +1,30 @@
 language: php
 
-php:
-  - 5.3
-  - 5.4
-  - 5.5
-  - 5.6
+matrix:
+  fast_finish: true
+  allow_failures:
+    - php: 5.6
+  include:
+    - php: 5.3
+    - php: 5.4
+    - php: 5.5
+      env: SUBMODULE_TEST=yes
+    - php: 5.6
 
 env:
-  - DB=mysql
+  global:
+    secure: NGVAI0ayw2h9pB2bi2u9AkfV1OKa2LCrGXNtxAvQhFxKW28qmeOUehFuacxpvCI5fA8Ae7oVo2Ba0vcpb5a3uJry1lMpxcn9Ic+voB7SwlCuL6Rx/vntPkYUH+58cC3t40yHKArCUE9KCJA6znNCaZ7MyG6dWHgry0cvAjVOQzE=
+
+sudo: false
+
+cache:
+  directories:
+    - $HOME/.composer/cache
+
+addons:
+  apt:
+    packages:
+      - parallel
 
 services:
   - memcached
@@ -34,8 +51,7 @@ before_script:
   - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
   - echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
   - chmod a+x typo3/sysext/core/Build/Scripts/*
-  - sudo apt-get install parallel
-  - composer self-update
+  - if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
   - composer install
 
 script:
@@ -58,3 +74,14 @@ script:
     echo;
     echo "Running XLF checker";
     ./typo3/sysext/core/Build/Scripts/xlfcheck.sh
+  - >
+    if [[ "$SUBMODULE_TEST" == "yes" ]]; then
+        echo;
+        echo "Running git submodule check";
+        /bin/bash -c "
+            if [[ `git submodule status 2>&1 | wc -l` -ne 0 ]]; then
+                echo \"Found a submodule definition in repository\";
+                exit 99;
+            fi
+        "
+    fi