OSDN Git Service

2f446dcda68c88a760e306ee1935d332a44768d5
[invent/invent.git] / .travis.yml
1 language: php
2
3 services:
4     - postgresql
5
6 before_script:
7     # Postgersql
8     - psql -c 'CREATE DATABASE invent;' -U postgres
9     - psql -c "CREATE USER invent WITH PASSWORD 'Rfhkc0y';" -U postgres
10     # Start up a web server
11     - php -S 127.0.0.1:8888 -t web >/dev/null 2>&1 &
12     # Start up the webdriver
13     - phantomjs --webdriver=4444 >/dev/null 2>&1 &
14     # Install codeception
15     - composer install --prefer-source
16     - echo "yes" | ./yii migration/up
17
18 script:
19     - vendor/bin/codecept run