From 43b6bae01147a998cc002a808c266a51396db6ed Mon Sep 17 00:00:00 2001 From: helpfulrobot Date: Fri, 18 Dec 2015 23:08:27 +1300 Subject: [PATCH] Added standard Travis config --- .travis.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8380bc6..c5c7ec1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,28 @@ # See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details -language: php -php: - - 5.5 - sudo: false +language: php + +php: + - 5.5 + - 5.6 + - 7.0 + env: - - DB=MYSQL CORE_RELEASE=master - - DB=PGSQL CORE_RELEASE=master + - DB=MYSQL CORE_RELEASE=4.0 matrix: include: - php: 5.6 - env: DB=MYSQL CORE_RELEASE=master + env: DB=PGSQL CORE_RELEASE=4.0 before_script: - - phpenv rehash - - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support - - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss - - cd ~/builds/ss + - composer self-update || true + - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support + - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss + - cd ~/builds/ss + - composer install script: - - phpunit translatable/tests/ + - vendor/bin/phpunit silverstripe-translatable/tests