forked from redelivre/login-cidadao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (34 loc) · 1.01 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
env:
- SYMFONY_DEPRECATIONS_HELPER=weak
php:
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
addons:
postgresql: "9.3"
services:
- memcached
before_script:
- psql -c "create user logincidadao with password '';" -U postgres
- psql -c "create database logincidadao with owner logincidadao" -U postgres
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer self-update
- composer install --prefer-dist
- chmod -R 777 app/cache app/logs web/uploads
- echo y | php app/console doctrine:schema:update --force
- echo y | php app/console doctrine:schema:update --em=logs --force
- echo y | php app/console lc:database:populate batch/
script:
- ./bin/phpunit -c app
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover