OSDN Git Service

Настройка travis-CI/CD
[invent/invent.git] / .travis.yml
1 language: php
2
3 services:
4     - postgresql
5
6 before_script:
7     # Check sintax errors
8     - '! find . -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 >&- | grep "^"'
9     # Postgersql
10     - psql -c 'CREATE DATABASE invent;' -U postgres
11     - psql -c "CREATE USER invent WITH PASSWORD 'Rfhkc0y';" -U postgres
12     # Start up a web server
13     - php -S 127.0.0.1:8888 -t web >/dev/null 2>&1 &
14     # Start up the webdriver
15     #- phantomjs --webdriver=4444 >/dev/null 2>&1 &
16     # Install codeception
17     - composer install --prefer-source
18     - echo "yes" | ./yii migrate/up
19     - echo "yes" | ./yii migrate --migrationPath=@yii/rbac/migrations
20     - echo "yes" | ./yii rbac/init
21
22 script:
23     - vendor/bin/codecept run