forked from Codeception/Codeception
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch "2.2" of github.com:Codeception/Codeception into 2.2
- Loading branch information
Showing
13 changed files
with
164 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ settings: | |
colors: true | ||
memory_limit: 1024M | ||
log: true | ||
lint: true | ||
lint: false | ||
modules: | ||
config: | ||
AMQP: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
hhvm.server.port = 8000 | ||
hhvm.server.type = proxygen | ||
hhvm.server.default_document = index.php | ||
hhvm.server.error_document404 = index.php | ||
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc | ||
hhvm.log.use_log_file = false | ||
hhvm.hack.lang.auto_typecheck=0 | ||
hhvm.hack.lang.look_for_typechecker=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<?php | ||
$I = new OtherGuy($scenario); | ||
$I->amOnPage('/'); | ||
$I->see('Welcome to test app'); | ||
$I->see('Welcome to test app'); | ||
$I->haveFriend("friend")->does(function(OtherGuy $I) { | ||
$I->amOnPage('/info'); | ||
$I->see('Lots of valuable data'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
hhvm.server.port = 8010 | ||
hhvm.server.type = proxygen | ||
hhvm.server.default_document = index.php | ||
hhvm.server.error_document404 = index.php | ||
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc | ||
hhvm.log.use_log_file = false | ||
hhvm.hack.lang.auto_typecheck=0 | ||
hhvm.hack.lang.look_for_typechecker=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
box: hhvm/hhvm-proxygen | ||
# Build definition | ||
|
||
build: | ||
# The steps that will be executed on build | ||
steps: | ||
- script: | ||
name: disable interactive install | ||
code: | | ||
export DEBIAN_FRONTEND=noninteractive | ||
- install-packages: | ||
packages: curl git mysql-server mysql-server-5.5 redis-server postgresql | ||
- script: | ||
name: start database servers | ||
code: | | ||
/etc/init.d/mysql start | ||
/etc/init.d/redis-server start | ||
sed -i "s/ peer/ trust/g" /etc/postgresql/*/main/pg_hba.conf | ||
sed -i "s/ md5/ trust/g" /etc/postgresql/*/main/pg_hba.conf | ||
/etc/init.d/postgresql start | ||
- script: | ||
name: install composer | ||
code: | | ||
rm -f composer.lock | ||
export COMPOSER_CACHE_DIR=$WERCKER_CACHE_DIR | ||
curl -sS https://getcomposer.org/installer | hhvm --php -- --install-dir=/usr/local/bin/ | ||
composer.phar remove mongodb/mongodb --no-update --dev | ||
composer.phar install | ||
echo "xdebug.enable = On" >> /etc/hhvm/php.ini | ||
- script: | ||
name: setup HHVM servers | ||
code: | | ||
echo ${WERCKER_ROOT}/tests/data/app | ||
echo "hhvm.server.source_root=${WERCKER_ROOT}/tests/data/app" >> tests/data/app/hhvm-server.ini | ||
cat tests/data/app/hhvm-server.ini | ||
hhvm -m server -c tests/data/app/hhvm-server.ini -c /etc/hhvm/site.ini & | ||
echo "hhvm.server.source_root=${WERCKER_ROOT}/tests/data/rest" >> tests/data/rest/hhvm-server.ini | ||
hhvm -m server -c tests/data/rest/hhvm-server.ini -c /etc/hhvm/site.ini & | ||
- script: | ||
name: prepare databases | ||
code: | | ||
mysql -e 'create database codeception_test;' | ||
su postgres -c "psql -c 'create database codeception_test;' -U postgres" | ||
# A custom script step, name value is used in the UI | ||
# and the code value contains the command that get executed | ||
- script: | ||
name: codeception tests | ||
code: | | ||
php codecept run cli,unit |