OSDN Git Service

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