Skip to content

Commit

Permalink
Merge pull request #21 from dhensby/pulls/2.0/travis-fix
Browse files Browse the repository at this point in the history
Update travis for 4.0 tests
  • Loading branch information
Damian Mooyman committed Mar 23, 2016
2 parents df30335 + 8a4e343 commit 0bd2864
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
28 changes: 18 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
language: php
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details

sudo: false

language: php

php:
- 5.5
- 5.6
- 7.0

env:
matrix:
- DB=SQLITE CORE_RELEASE=master
- DB=SQLITE CORE_RELEASE=master PDO=1

matrix:
include:
- php: 5.6
env: DB=SQLITE CORE_RELEASE=master PDO=0

before_script:
- composer self-update || true
- 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 framework/tests
script:
- vendor/bin/phpunit framework/tests
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
"require": {
"silverstripe/framework": "~4.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8"
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 0bd2864

Please sign in to comment.