language: php

php:
  - 5.3
  - 5.4
  - 5.5

env:
  global:
    - REPO_NAME=cakephp-vat-number-check
    - PLUGIN_NAME=VatNumberCheck
    - REQUIRE=""
    - DB=mysql CAKE_VERSION=master

  matrix:
    - DB=mysql CAKE_VERSION=2.3
    - DB=mysql CAKE_VERSION=2.4
    - DB=mysql CAKE_VERSION=2.5

matrix:
  include:
    - php: 5.3
      env:
        - COVERALLS=1
    - php: 5.3
      env:
        - PHPCS=1 PHPCS_NO_WARNINGS=1
    - php: 5.3
      env:
        - FOC_VALIDATE=1

before_script:
  - git clone -b no-warnings-support-for-phpcs https://github.com/tersmitten/travis.git --depth 1 ../travis
  - ../travis/before_script.sh

script:
  - ../travis/script.sh

after_success:
  - ../travis/after_success.sh

notifications:
  email: false

language: php

php:
  - 5.3
  - 5.4
  - 5.5

env:
  global:
    - REPO_NAME=cakephp-vat-number-check
    - PLUGIN_NAME=VatNumberCheck
    - REQUIRE=""
    - DB=mysql CAKE_VERSION=master

  matrix:
    - DB=mysql CAKE_VERSION=2.3
    - DB=mysql CAKE_VERSION=2.4
    - DB=mysql CAKE_VERSION=2.5

matrix:
  include:
    - php: 5.3
      env:
        - COVERALLS=1
    - php: 5.3
      env:
        - PHPCS=1 PHPCS_NO_WARNINGS=1
    - php: 5.3
      env:
        - FOC_VALIDATE=1

before_script:
  - git clone -b no-warnings-support-for-phpcs https://github.com/tersmitten/travis.git --depth 1 ../travis
  - ../travis/before_script.sh
  - ls && cd ../cakephp/app
  - echo "CakePlugin::load('${PLUGIN_NAME}', array('routes' => true));" >> Config/bootstrap.php
  - cd ../../${REPO_NAME} && ls

script:
  - ../travis/script.sh

after_success:
  - ../travis/after_success.sh

notifications:
  email: false

Fix for routes not being loaded.
Fix for routes not being loaded.

Resolves failing tests.
