Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3a42c8c3
Commit
3a42c8c3
authored
Jun 12, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix hhvm tests
parent
0ba40f60
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
20 deletions
+45
-20
.travis.yml
.travis.yml
+4
-20
init-apps.sh
tests/unit/data/travis/init-apps.sh
+14
-0
setup-apps.sh
tests/unit/data/travis/setup-apps.sh
+27
-0
No files found.
.travis.yml
View file @
3a42c8c3
...
@@ -30,20 +30,8 @@ install:
...
@@ -30,20 +30,8 @@ install:
-
tests/unit/data/travis/apc-setup.sh
-
tests/unit/data/travis/apc-setup.sh
-
tests/unit/data/travis/memcache-setup.sh
-
tests/unit/data/travis/memcache-setup.sh
-
tests/unit/data/travis/cubrid-setup.sh
-
tests/unit/data/travis/cubrid-setup.sh
# basic application:
# basic and advanced application:
-
composer install --dev --prefer-dist -d apps/basic
-
tests/unit/data/travis/setup-apps.sh
-
cd apps/basic && composer require --dev codeception/codeception:1.8.*@dev codeception/specify:* codeception/verify:*
-
php vendor/bin/codecept build && cd ../..
# advanced application:
-
composer install --dev --prefer-dist -d apps/advanced
-
cd apps/advanced && composer require --dev codeception/codeception:1.8.*@dev codeception/specify:* codeception/verify:*
-
./init --env=Development
-
sed -i s/root/travis/ common/config/main-local.php
-
cd backend && php ../vendor/bin/codecept build
-
cd ../common && php ../vendor/bin/codecept build
-
cd ../frontend && php ../vendor/bin/codecept build && cd ../../..
# boot server
-
cd apps && php -S localhost:8080 > /dev/null 2>&1 &
before_script
:
before_script
:
-
echo 'elasticsearch version ' && curl http://localhost:9200/
-
echo 'elasticsearch version ' && curl http://localhost:9200/
...
@@ -51,12 +39,8 @@ before_script:
...
@@ -51,12 +39,8 @@ before_script:
-
psql -U postgres -c 'CREATE DATABASE yiitest;';
-
psql -U postgres -c 'CREATE DATABASE yiitest;';
-
tests/unit/data/travis/sphinx-setup.sh
-
tests/unit/data/travis/sphinx-setup.sh
-
mongo yii2test --eval 'db.addUser("travis", "test");'
-
mongo yii2test --eval 'db.addUser("travis", "test");'
-
mysql -e 'CREATE DATABASE yii2_advanced_acceptance;';
# basic and advanced application:
-
mysql -e 'CREATE DATABASE yii2_advanced_functional;';
-
tests/unit/data/travis/init-apps.sh
-
mysql -e 'CREATE DATABASE yii2_advanced_unit;';
-
cd apps/advanced/frontend/tests/acceptance && php yii migrate --interactive=0
-
cd ../functional && php yii migrate --interactive=0
-
cd ../unit && php yii migrate --interactive=0 && cd ../../../../..
script
:
script
:
-
vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata
-
vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --exclude-group mssql,oci,wincache,xcache,zenddata
...
...
tests/unit/data/travis/init-apps.sh
0 → 100644
View file @
3a42c8c3
#!/bin/sh
if
(
php
--version
|
grep
-i
HHVM
>
/dev/null
)
;
then
echo
"skipping application init on HHVM"
else
mysql
-e
'CREATE DATABASE yii2_advanced_acceptance;'
;
mysql
-e
'CREATE DATABASE yii2_advanced_functional;'
;
mysql
-e
'CREATE DATABASE yii2_advanced_unit;'
;
cd
apps/advanced/frontend/tests/acceptance
&&
php yii migrate
--interactive
=
0
cd
../functional
&&
php yii migrate
--interactive
=
0
cd
../unit
&&
php yii migrate
--interactive
=
0
&&
cd
../../../../..
fi
tests/unit/data/travis/setup-apps.sh
0 → 100644
View file @
3a42c8c3
#!/bin/sh
if
(
php
--version
|
grep
-i
HHVM
>
/dev/null
)
;
then
echo
"skipping application setup on HHVM"
else
# basic application:
composer
install
--dev
--prefer-dist
-d
apps/basic
cd
apps/basic
&&
composer require
--dev
codeception/codeception:1.8.
*
@dev codeception/specify:
*
codeception/verify:
*
php vendor/bin/codecept build
&&
cd
../..
# advanced application:
composer
install
--dev
--prefer-dist
-d
apps/advanced
cd
apps/advanced
&&
composer require
--dev
codeception/codeception:1.8.
*
@dev codeception/specify:
*
codeception/verify:
*
./init
--env
=
Development
sed
-i
s/root/travis/ common/config/main-local.php
cd
backend
&&
php ../vendor/bin/codecept build
cd
../common
&&
php ../vendor/bin/codecept build
cd
../frontend
&&
php ../vendor/bin/codecept build
&&
cd
../../..
# boot server
cd
apps
&&
php
-S
localhost:8080
>
/dev/null 2>&1 &
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment