language: php

php:
  - 5.5
  - 5.4
  - 5.3

env:
  - CAKE_VERSION=2.3.8
  - CAKE_VERSION=2.2.9
  - CAKE_VERSION=2.1.5

before_install:
  - git submodule update --init --recursive

before_script:
  - git clone https://github.com/cakephp/cakephp.git ../cakephp
  - cd ../cakephp
  - git checkout $CAKE_VERSION
  - cd app
  - mv ../../MustacheCake Plugin/MustacheCake
  - chmod -R 777 tmp

script:
  - ./Console/cake test MustacheCake AllMustacheCake --stderr

language: php

php:
  - 5.2
  - 5.3
  - 5.4
  - 5.5

env:
  - CAKE_VERSION=2.3.8

matrix:
  include:
    - php: 5.5
      env: CAKE_VERSION=2.2.9
    - php: 5.5
      env: CAKE_VERSION=2.1.5

before_install:
  - git submodule update --init --recursive

before_script:
  - git clone https://github.com/cakephp/cakephp.git ../cakephp
  - cd ../cakephp
  - git checkout $CAKE_VERSION
  - cd app
  - mv ../../MustacheCake Plugin/MustacheCake
  - chmod -R 777 tmp

script:
  - ./Console/cake test MustacheCake AllMustacheCake --stderr

Add PHP 5.2 to Travis config.
Add PHP 5.2 to Travis config.
