Alexander Makarov
0a716fab72
Use latest version of dependencies
5 years ago
Alexander Makarov
69b1966b4a
PHP 7.4 fixes
...
- Fix `Model::activeAttributes()` to access array offset on value of non-string
- Fix incorrect decoding of default binary value for PostgreSQL
- Fix incorrect type-casting of reflection type to string
5 years ago
Alexander Makarov
47ca44940a
Use release PHP 7.4 in tests ( #17709 )
5 years ago
Alexander Makarov
3ef303968f
Add PHP 7.4snapshot to the main build
...
No stable release is available yet. See https://travis-ci.community/t/php-7-4-release/6197
5 years ago
Alexander Kartavenko
e113e09c9c
Fix #17459 . Use MySQL docker container for testing ( #17476 )
5 years ago
Alexander Makarov
a4a22ae1fb
Partially fix travis builds ( #17456 )
...
* Use xenial since trusty has issues installing MySQL
* 5.4 and 5.5 are available on trusty only so these are set to allow failures for now
* Skip memcached and memcache on PHP 5.6 since it's compiled wrong. See https://travis-ci.community/t/unable-to-load-dynamic-library-memcached-so/2232/16
* Ignore failure to update MySQL (it could be up to date already)
5 years ago
Alexander Kartavenko
56f639358c
Add MSSQL tests ( #17410 )
5 years ago
Pavel Ivanov
3c1f1e4dcc
Disabled deprecated warnings for PHP 7.3 tests ( #16997 )
6 years ago
cuileon
489dd119a5
merge from yiisoft/yii2
6 years ago
Alexander Makarov
ef9793bebc
Aren't going to support HHVM further so while it's good to have tests passing, failing them is not a huge issue anymore
6 years ago
SilverFire - Dmitry Naumenko
0e3a66134c
Fixing Travis build
...
Travis build failed because of very slow MySQL queries execution.
According to MySQL 5.7.23 [release notes](https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-23.html#mysqld-5-7-23-bug )
the `mysql_upgrade` command MUST be run after upgrading to this release.
Otherwise MySQL will flood logs with a warging that results in a performance problems.
6 years ago
Sam
84cb255aab
Fixes #16245 : Fixed `__isset()` in `BaseActiveRecord` not catching errors
6 years ago
Filippo Tessarotto
4f41d1118c
FileCache: rebuild cache file before touch when different file owner ( #16120 )
...
* Test Travis envs
* The fix
* posix_geteuid only exists on Linux
* Added PR to changelog
7 years ago
Pavel Ivanov
4b3edca9b1
Better travis config comments [skip ci] ( #15996 )
7 years ago
Pavel Ivanov
4e940a2772
Fix travis builds for 'nightly' php ( #15992 )
...
1) Fixed unexpected exceptions (PHP nightly): https://travis-ci.org/yiisoft/yii2/jobs/358866164#L789
2) Fixed session issues (PHP hhvm): https://travis-ci.org/yiisoft/yii2/jobs/358866162#L841
3) Excluded unicode characters check from 'nightly' PHP version
4) Also deprecated InvalidParamException replaced with InvalidArgumentException
7 years ago
SilverFire - Dmitry Naumenko
455b1f3f97
Fixing HHVM@Travis
7 years ago
SilverFire - Dmitry Naumenko
eb40090dda
The min. tested version for HHVM is 3.21
...
The old 3.12 is no longer supported according to HHVM releases lifecycle
https://docs.hhvm.com/hhvm/installation/release-schedule#Lifecycle
7 years ago
Zhukov Roman
40b038379f
Fixes #13019 : Support JSON in SchemaBuilderTrait
7 years ago
Dmitry Naumenko
d16586334d
Fixes #7640 : Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Carsten Brandt
84afc663fa
add PHP 7.2 to travis as master is now 7.3
...
https://twitter.com/WyriHaximus/status/898424184212148224
7 years ago
Robert Korulczyk
462b5f5b50
Use new trusty images on travis ( #14508 )
...
This should fix "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'" errors.
7 years ago
Alexander Makarov
74068eb053
Removed cs fixer from Travis
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
SilverFire - Dmitry Naumenko
f62b53f475
Switched ocular to use PHP 7.1 execution results
8 years ago
SilverFire - Dmitry Naumenko
9e1063e104
Enable xdebug for coverage on 7.1 insted of 5.6 as it should work faster
8 years ago
SilverFire - Dmitry Naumenko
d3f97f7e64
Switched to asset-packagist
8 years ago
Alexander Makarov
c35ddec09a
Update composer fxp plugin version in docs and travis scripts
8 years ago
Carsten Brandt
e66722aa43
Update .travis.yml
...
allow building on all branches.
/cc @Silverfire
8 years ago
Carsten Brandt
38e97c0fa7
Update .travis.yml
8 years ago
Carsten Brandt
5fb3368506
Update .travis.yml
8 years ago
Carsten Brandt
b26fad7258
travis_retry for mysql
...
maybe the server is not yet up at this point?
https://github.com/yiisoft/yii2/issues/13284
8 years ago
SilverFire - Dmitry Naumenko
bd87be990f
Updated travis config to build only on master branches
...
Closes #13345
8 years ago
Carsten Brandt
f757bdfa81
added mysql service explicitly to travis-ci
...
this might fix #13284
/cc @arogachev
8 years ago
Carsten Brandt
17c272501a
added UTF8 BOM check to travis.yml
...
issue #13296
8 years ago
Alexey Rogachev
d2bafcc2a1
Fixed comments in travis.yml [skip ci]
8 years ago
Walt Sorensen
e1ba289978
Speed up hhvm unit tests - disable jit ( #13189 )
...
Turn off the hhvm JIT to speed up the hhvm unit tests.
Source: facebook/hhvm#6979
8 years ago
Alexey Rogachev
2b29a779c8
Use composer install instead of composer update in Travis ( #12947 )
8 years ago
Robert Korulczyk
2a68351ec3
Fix tests on travis. ( #13238 )
8 years ago
SilverFire - Dmitry Naumenko
dd4b5afb5b
Try #2 to fix travis build on PHP < 7
8 years ago
SilverFire - Dmitry Naumenko
da5fbbd20e
Revert "Try to fix travis build on PHP < 7"
...
This reverts commit 779b687415
.
8 years ago
SilverFire - Dmitry Naumenko
779b687415
Try to fix travis build on PHP < 7
8 years ago
Alexander Makarov
758ca250ac
Enabled Codeclimate code coverage ( #13112 )
8 years ago
Carsten Brandt
51786cb595
improved composer stability for the asset plugin
8 years ago
Carsten Brandt
02af14e62f
move JS tests into a separate branch in travis matrix
...
this avoids running JS tests for each PHP version.
8 years ago
Alexey Rogachev
8ea1f510af
Implemented Javascript test suite
...
fixes #12840
Used @nkovacs draft as starting
point(https://github.com/yiisoft/yii2/issues/11037#issuecomment-193356450 ).
I also fixed some bugs in `yii.validation.js` and did some refactoring.
Implemented tests:
- yii.validation.js
Running tests:
- Install Node.js. I used the latest version available at the moment -
`v7.1.0`. Note that used `jsdom` dependent library version requires
`Node.js >= 4`.
- Run `npm install` to install dependencies.
- Execute `npm test` for running tests.
8 years ago
Carsten Brandt
4e4a6f69e3
remove CUBRID env from travis it is unused
8 years ago
Alexey Rogachev
8c0a431c66
Fix MySQL database setup for ubuntu trusty
8 years ago
Alexey Rogachev
a7ee60f9d2
Switch travis OR from precise to trusty
...
Switch from precise to trusty is required mainly because of jsdom
dependency. It requires Node.js > 4. Precise has very old Node.js and
NPM versions and they can not be updated because of default versions of
C++ compilers. While it's possible somehow to install Node 6 on Precise,
see this [document](https://github.com/nodesource/distributions/blob/master/OLDER_DISTROS.md ),
I think this is not elegant solution and I'm not 100%
sure it will work correctly with Travis and container-based precise dist.
Trusty has v6.3.0 by default which is enough and way better and newer.
8 years ago
Walt Sorensen
04d9ae69bb
Test against HHVM 3.12 LTS version ( #13012 )
...
This provides Testing against HHVM 3.12 LTS version
If testing against other HHVM LST versions is desired follow this guide. https://docs.travis-ci.com/user/languages/php#HHVM-versions
Should be able to change to container based Trusty after Q1-17 https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/
8 years ago