-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
26 lines (21 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: php
php:
- 5.4
before_script:
- composer install --dev
- echo 'CREATE DATABASE universibo' | psql -U postgres
- echo 'CREATE DATABASE universibo_forum3' | psql -U postgres
- echo "CREATE USER universibo WITH PASSWORD 'universibo'" | psql -U postgres
- echo "GRANT ALL PRIVILEGES ON DATABASE universibo TO universibo" | psql -U postgres
- echo "GRANT ALL PRIVILEGES ON DATABASE universibo_forum3 TO universibo" | psql -U postgres
- cat app/sql/pgsql/devdb.sql | psql -U postgres universibo
- cat vendor/universibo/forum-bundle/Universibo/Bundle/ForumBundle/Tests/Resources/sql/{structure,data}-postgres.sql | sed 's/OWNER TO.*/OWNER TO universibo;/' | psql -U postgres universibo_forum3
script:
- bin/phpunit -c app --coverage-clover=coverage.clover
- bin/behat @UniversiboDashboardBundle -v
- bin/behat @UniversiboWebsiteBundle -v
notifications:
email: [email protected]
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover