OSDN Git Service

Настройка travis-CI/CD
[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 migrate/up
17     - echo "yes" | ./yii migrate --migrationPath=@yii/rbac/migrations
18     - echo "yes" | ./yii rbac/init
19
20 script:
21     - vendor/bin/codecept run