mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Update unit tests for PHP 7.1 and Codeception 2.1.11
This commit is contained in:
parent
fa25b1ba47
commit
3feccd3bcb
3 changed files with 8 additions and 9 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -1,23 +1,21 @@
|
|||
language: php
|
||||
php:
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- hhvm
|
||||
sudo: false
|
||||
before_script:
|
||||
- npm install grunt grunt-cli grunt-contrib-jshint grunt-contrib-csslint grunt-phplint --save-dev
|
||||
- mysql -u root -e "CREATE DATABASE rhymix"
|
||||
- mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis')"
|
||||
- if [[ $TRAVIS_PHP_VERSION != "5.4" && $TRAVIS_PHP_VERSION != "hhvm" ]]; then php -S localhost:8000 & fi
|
||||
- if [[ $TRAVIS_PHP_VERSION == "5.4" ]]; then wget http://codeception.com/releases/2.0.16/codecept.phar; fi
|
||||
- if [[ ! -f codecept.phar ]]; then wget http://codeception.com/releases/2.1.6/codecept.phar; fi
|
||||
- if [[ $TRAVIS_PHP_VERSION != "hhvm" ]]; then php -S localhost:8000 & fi
|
||||
- wget http://codeception.com/releases/2.1.11/codecept.phar
|
||||
script:
|
||||
- if [[ -s codecept.phar ]]; then php codecept.phar build; fi
|
||||
- if [[ -s codecept.phar && $TRAVIS_PHP_VERSION == "hhvm" ]]; then php codecept.phar run -d --fail-fast --env travis --skip install; fi
|
||||
- if [[ -s codecept.phar && $TRAVIS_PHP_VERSION == "5.4" ]]; then php codecept.phar run -d --fail-fast --env travis --skip install; fi
|
||||
- if [[ -s codecept.phar && $TRAVIS_PHP_VERSION != "5.4" && $TRAVIS_PHP_VERSION != "hhvm" ]]; then php codecept.phar run -d --fail-fast --env travis; fi
|
||||
- php codecept.phar build
|
||||
- if [[ $TRAVIS_PHP_VERSION == "hhvm" ]]; then php codecept.phar run -d --fail-fast --env travis --skip install; fi
|
||||
- if [[ $TRAVIS_PHP_VERSION != "hhvm" ]]; then php codecept.phar run -d --fail-fast --env travis; fi
|
||||
- grunt lint
|
||||
notifications:
|
||||
email: false
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ module.exports = function(grunt) {
|
|||
'box-sizing' : false,
|
||||
'font-sizes' : false,
|
||||
'duplicate-background-images' : false,
|
||||
'order-alphabetical' : false,
|
||||
'ids' : false,
|
||||
'important' : false,
|
||||
'overqualified-elements' : false,
|
||||
|
|
|
|||
|
|
@ -362,7 +362,7 @@ class StorageTest extends \Codeception\TestCase\Test
|
|||
|
||||
if (strncasecmp(\PHP_OS, 'Win', 3) !== 0)
|
||||
{
|
||||
if (get_current_user() === exec('whoami'))
|
||||
if (fileowner(__FILE__) == exec('id -u'))
|
||||
{
|
||||
$this->assertEquals('0022', $umask);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue