3 changed files with 130 additions and 0 deletions
@ -0,0 +1,49 @@ |
|||||||
|
language: php |
||||||
|
|
||||||
|
php: |
||||||
|
- 7.1 |
||||||
|
- 7.2 |
||||||
|
- 7.3 |
||||||
|
- nightly |
||||||
|
|
||||||
|
matrix: |
||||||
|
fast_finish: true |
||||||
|
allow_failures: |
||||||
|
- php: 7.3 |
||||||
|
- php: nightly |
||||||
|
|
||||||
|
global: |
||||||
|
- CI=true |
||||||
|
- CI_ENVIRONMENT=testing |
||||||
|
|
||||||
|
# Recommended by Travis support |
||||||
|
sudo: required |
||||||
|
dist: trusty |
||||||
|
group: edge |
||||||
|
|
||||||
|
env: |
||||||
|
- DB=mysqli |
||||||
|
- DB=postgres |
||||||
|
- DB=sqlite |
||||||
|
|
||||||
|
services: |
||||||
|
- memcached |
||||||
|
- mysql |
||||||
|
- postgresql |
||||||
|
- redis-server |
||||||
|
|
||||||
|
script: |
||||||
|
- php vendor/bin/phpunit -v |
||||||
|
|
||||||
|
before_install: |
||||||
|
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot; |
||||||
|
- mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'test';" -uroot |
||||||
|
- psql -c 'CREATE DATABASE test;' -U postgres |
||||||
|
|
||||||
|
before_script: |
||||||
|
- echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
||||||
|
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
||||||
|
- composer install --prefer-source |
||||||
|
|
||||||
|
after_success: |
||||||
|
- travis_retry php tests/bin/php-coveralls.phar -v |
@ -0,0 +1,36 @@ |
|||||||
|
{ |
||||||
|
"description": "The CodeIgniter framework v4", |
||||||
|
"name": "codeigniter4/framework", |
||||||
|
"type": "project", |
||||||
|
"homepage": "https://codeigniter.com", |
||||||
|
"license": "MIT", |
||||||
|
"support": { |
||||||
|
"forum": "http://forum.codeigniter.com/", |
||||||
|
"slack": "https://codeigniterchat.slack.com", |
||||||
|
"source": "https://github.com/bcit-ci/CodeIgniter4" |
||||||
|
}, |
||||||
|
"autoload": { |
||||||
|
"psr-4": { |
||||||
|
"CodeIgniter\\": "system/", |
||||||
|
"Psr\\Log\\": "system/ThirdParty/PSR/Log/" |
||||||
|
} |
||||||
|
}, |
||||||
|
"require": { |
||||||
|
"php": ">=7.1", |
||||||
|
"zendframework/zend-escaper": "^2.5", |
||||||
|
"kint-php/kint": "^2.1", |
||||||
|
"ext-intl": "*", |
||||||
|
"ext-curl": "*" |
||||||
|
}, |
||||||
|
"require-dev": { |
||||||
|
"phpunit/phpunit": "^7.0", |
||||||
|
"mikey179/vfsStream": "1.6.*", |
||||||
|
"codeigniter4/codeigniter4-standard": "^1.0" |
||||||
|
}, |
||||||
|
"scripts": { |
||||||
|
"post-update-cmd": [ |
||||||
|
"composer dump-autoload", |
||||||
|
"CodeIgniter\\ComposerScripts::postUpdate" |
||||||
|
] |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,45 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<phpunit bootstrap="tests/_support/_bootstrap.php" |
||||||
|
backupGlobals="false" |
||||||
|
colors="true" |
||||||
|
convertErrorsToExceptions="true" |
||||||
|
convertNoticesToExceptions="true" |
||||||
|
convertWarningsToExceptions="true" |
||||||
|
stopOnError="false" |
||||||
|
stopOnFailure="false" |
||||||
|
stopOnIncomplete="false" |
||||||
|
stopOnSkipped="false"> |
||||||
|
<testsuites> |
||||||
|
<testsuite name="app"> |
||||||
|
<directory>./tests</directory> |
||||||
|
<exclude>./tests/system</exclude> |
||||||
|
</testsuite> |
||||||
|
<testsuite name="system"> |
||||||
|
<directory>./tests/system</directory> |
||||||
|
<exclude>./tests/system/Database</exclude> |
||||||
|
</testsuite> |
||||||
|
<testsuite name="database"> |
||||||
|
<directory>./tests/system/Database</directory> |
||||||
|
</testsuite> |
||||||
|
</testsuites> |
||||||
|
|
||||||
|
<filter> |
||||||
|
<whitelist processUncoveredFilesFromWhitelist="true"> |
||||||
|
<directory suffix=".php">./system</directory> |
||||||
|
<exclude> |
||||||
|
<directory>./system/Debug/Toolbar/Views</directory> |
||||||
|
<directory>./system/Pager/Views</directory> |
||||||
|
<directory>./system/ThirdParty</directory> |
||||||
|
<directory>./system/Validation/Views</directory> |
||||||
|
<file>./system/bootstrap.php</file> |
||||||
|
<file>./system/Commands/Sessions/Views/migration.tpl.php</file> |
||||||
|
<file>./system/ComposerScripts.php</file> |
||||||
|
<file>./system/Config/Routes.php</file> |
||||||
|
</exclude> |
||||||
|
</whitelist> |
||||||
|
</filter> |
||||||
|
|
||||||
|
<logging> |
||||||
|
<log type="coverage-clover" target="build/logs/clover.xml"/> |
||||||
|
</logging> |
||||||
|
</phpunit> |
Loading…
Reference in new issue