Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'project/master' into master-merges
Browse files Browse the repository at this point in the history
# Conflicts:
#	codeception.yml
#	composer.lock
  • Loading branch information
dereuromark committed Oct 23, 2017
2 parents 6483459 + 6cd60c9 commit 0353df7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 59 deletions.
4 changes: 0 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ trim_trailing_whitespace = true
[*.bat]
end_of_line = crlf

[*.yml]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2
Expand Down
2 changes: 1 addition & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace: PyzTest
actor: Tester

include:
- tests/PyzTest/*/*
- tests/PyzTest/*/*

paths:
tests: tests
Expand Down
98 changes: 47 additions & 51 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions deploy/setup/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CURL=`which curl`
NPM=`which npm`
GIT=`which git`
PHP=`which php`
PG_VERSION=$(psql --version | awk '{print $3}' | cut -f1,2 -d'.')

if [[ `echo "$@" | grep '\-v'` ]]; then
VERBOSITY='-v'
Expand Down Expand Up @@ -104,7 +105,7 @@ function dropAndRestoreDatabase {
mysql -u${DATABASE_USER} -p${DATABASE_PASSWORD} -e "CREATE DATABASE ${DATABASE_NAME};"
mysql -u${DATABASE_USER} -p${DATABASE_PASSWORD} ${DATABASE_NAME} < ${DATABASE_BACKUP_PATH}
else
sudo pg_ctlcluster 9.4 main restart --force
sudo pg_ctlcluster $PG_VERSION main restart --force
sudo dropdb $DATABASE_NAME
sudo createdb $DATABASE_NAME
pg_restore -i -h 127.0.0.1 -p 5432 -U $DATABASE_USER -d $DATABASE_NAME -v $DATABASE_BACKUP_PATH
Expand Down Expand Up @@ -256,7 +257,7 @@ function dropDevelopmentDatabase {
if [[ -f $PG_CTL_CLUSTER ]] && [[ -f $DROP_DB ]]; then
labelText "Deleting PostgreSql Database: ${DATABASE_NAME} "
labelText "Drop PostgresSQL database: ${DATABASE_NAME}"
sudo pg_ctlcluster 9.4 main restart --force && sudo -u postgres dropdb $DATABASE_NAME 1>/dev/null
sudo pg_ctlcluster $PG_VERSION main restart --force && sudo -u postgres dropdb $DATABASE_NAME 1>/dev/null
writeErrorMessage "Deleting DB command failed"
fi
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function createExampleItem()
{
$stateMachineExampleItemEntity = new PyzStateMachineExampleItem();
$stateMachineExampleItemEntity->setName('Test item ' . rand(123, 321));
$stateMachineExampleItemEntity->save();

$affectedRowCount = $stateMachineExampleItemEntity->save();

Expand Down

0 comments on commit 0353df7

Please sign in to comment.