@@ -54,6 +54,29 @@ matrix:
54
54
services :
55
55
- mysql
56
56
- postgresql
57
+ # have a separate branch for javascript tests
58
+ - language : node_js
59
+ node_js : 6
60
+ dist : trusty
61
+ # overwrite php related settings
62
+ php :
63
+ services :
64
+ addons :
65
+ install :
66
+ - travis_retry npm install
67
+ # disable xdebug for performance in composer
68
+ - phpenv config-rm xdebug.ini || echo "xdebug is not installed"
69
+ - travis_retry composer self-update && composer --version
70
+ - travis_retry composer global require "fxp/composer-asset-plugin:^1.2.0"
71
+ - travis_retry composer update --prefer-dist --no-interaction
72
+ before_script :
73
+ - node --version
74
+ - npm --version
75
+ - php --version
76
+ - composer --version
77
+ script : npm test
78
+ after_script :
79
+
57
80
allow_failures :
58
81
- php : nightly
59
82
@@ -86,17 +109,13 @@ install:
86
109
- tests/data/travis/apc-setup.sh
87
110
- tests/data/travis/memcache-setup.sh
88
111
# - tests/data/travis/cubrid-setup.sh
89
- # NPM packages for JS testing
90
- - travis_retry npm install
91
112
92
113
before_script :
93
114
# show some versions and env information
94
115
- php -r "echo INTL_ICU_VERSION . \"\n\";"
95
116
- php -r "echo INTL_ICU_DATA_VERSION . \"\n\";"
96
117
- mysql --version
97
118
- psql --version
98
- - node --version
99
- - npm --version
100
119
101
120
# initialize databases
102
121
- mysql -e 'CREATE DATABASE `yiitest`;';
@@ -117,8 +136,6 @@ script:
117
136
- cd framework && composer validate --no-check-lock && cd ..
118
137
# run PHPUnit
119
138
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS --exclude-group mssql,oci,wincache,xcache,zenddata,cubrid
120
- # run Mocha for JS testing
121
- - npm test
122
139
123
140
after_script :
124
141
- |
0 commit comments