4.x compatibility: Rename "code" to "src" and add PSR-4 autoloading

This commit is contained in:
Robbie Averill 2016-12-22 14:54:49 +13:00
parent b6dc70efdf
commit 384c73608b
18 changed files with 37 additions and 45 deletions

View File

@ -6,4 +6,4 @@ checks:
duplication: true
filter:
paths: [code/*, tests/*]
paths: [src/*, tests/*]

View File

@ -1,33 +1,21 @@
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
sudo: false
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
env:
- DB=MYSQL CORE_RELEASE=3.2
matrix:
include:
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2
allow_failures:
- php: 7.0
- DB=MYSQL CORE_RELEASE=4
- DB=PGSQL CORE_RELEASE=4
before_script:
- composer self-update || true
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
- composer install

View File

@ -1,30 +1,34 @@
{
"name": "silverstripe/environmentcheck",
"description": "Provides an API for building environment tests",
"license": "BSD-3-Clause",
"type": "silverstripe-module",
"keywords": ["silverstripe", "testing", "environment", "check"],
"authors": [
{
"name": "Will Rossiter",
"email": "will@fullscreen.io"
},
{
"name": "Sam Minnee",
"email": "sam@silverstripe.com"
}
],
"require":
{
"silverstripe/framework": "^4.0@dev"
},
"require-dev":
{
"hafriedlander/phockito": "dev-master"
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
}
"name": "silverstripe/environmentcheck",
"description": "Provides an API for building environment tests",
"license": "BSD-3-Clause",
"type": "silverstripe-module",
"keywords": ["silverstripe", "testing", "environment", "check"],
"authors": [
{
"name": "Will Rossiter",
"email": "will@fullscreen.io"
},
{
"name": "Sam Minnee",
"email": "sam@silverstripe.com"
}
],
"require": {
"silverstripe/framework": "^4.0@dev"
},
"require-dev": {
"hafriedlander/phockito": "dev-master"
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"autoload": {
"psr-4": {
"SilverStripe\\EnvironmentCheck\\": "src/",
"SilverStripe\\EnvironmentCheck\\Tests\\": "tests/"
}
}
}