Skip to content

Commit

Permalink
create databases in before_test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed May 23, 2015
1 parent 05aeb29 commit 052381e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 10,11 @@ services:
- postgresql93

install:
# postgresql setup
- SET PATH=C:\Program Files\PostgreSQL\9.3\bin\;%PATH%
# databases setup
- SET PATH=C:\Program Files\MySql\MySQL Server 5.6\bin\;%PATH%
- SET PGUSER=postgres
- SET PGPASSWORD=Password12!
- createdb codeception_test
# mysql setup
- SET PATH=C:\Program Files\MySql\MySQL Server 5.6\bin\;%PATH%
- mysql -uroot -pPassword12 -e "CREATE DATABASE codeception_test"
- SET PATH=C:\Program Files\PostgreSQL\9.3\bin\;%PATH%
# php setup
- cinst -y OpenSSL.Light
- SET PATH=C:\Program Files\OpenSSL;%PATH%
Expand All @@ -39,6 36,10 @@ install:
- php -r "readfile('http://getcomposer.org/installer');" | php
- php composer.phar install --prefer-dist -n --no-ansi

before_test:
- createdb codeception_test
- mysql -uroot -pPassword12 -e "CREATE DATABASE codeception_test"

test_script:
- php codecept run cli --no-colors -n --skip-group coverage
- php codecept run unit -g core -g appveyor --no-colors -n

0 comments on commit 052381e

Please sign in to comment.