# Travis CI config for the WordPoints developer tools.

language: php

# Use the new infrustructure.
sudo: false

before_script:
  - gem install travis-lint

script:
  - xmllint --noout $(find . -type f \( -name '*.xml' -o -name '*.xml.dist' \))
  - find . -name '*.sh' -exec bash -n {} \;
  - find . -name '*.yml' -exec travis-lint {} \;
  - phpenv global 5.3 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.4 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.5 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.6 && find . -name '*.php' -exec php -lf {} \;

# EOF

# Travis CI config for the WordPoints developer tools.

language: php

# Use the new infrustructure.
sudo: false

before_script:
  - gem install travis-lint

script:
  - xmllint --noout $(find . -type f \( -name '*.xml' -o -name '*.xml.dist' \))
  - find . -name '*.sh' -exec bash -n {} \;
  - find . -name '*.yml' -exec travis-lint {} \;
  - phpenv global 5.2 && find . ! -path './phpcs/*' -name '*.php' -exec php -lf {} \;
  - phpenv global 5.3 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.4 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.5 && find . -name '*.php' -exec php -lf {} \;
  - phpenv global 5.6 && find . -name '*.php' -exec php -lf {} \;

# EOF

Validate PHP files against 5.2 in Travis
Validate PHP files against 5.2 in Travis

We exclude the path to the PHPCS files, since PHPCS requires PHP 5.3.

See #15
