OSDN Git Service

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