forked from PROCERGS/login-cidadao
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
35 lines (28 loc) · 840 Bytes
/
.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
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
matrix:
fast_finish: true
addons:
postgresql: "9.3"
services:
- redis
before_script:
- psql -c "create user logincidadao with password '';" -U postgres
- psql -c "create database logincidadao with owner logincidadao" -U postgres
- 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:
# Do NOT enable test coverage here since it takes way too much time
# We'll use Scrutinizer for that.
- composer test