-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (31 loc) · 1 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
language: php
cache:
directories:
- $HOME/.composer/cache
stages:
- api
jobs:
include:
- stage: API
php: 7.3
services:
- postgresql
before_install:
- source api/.travis/xdebug.sh
- xdebug-disable
- composer validate --working-dir=api/
install:
- composer install --working-dir=api/
before_script:
- cp api/.env.travis api/.env.local
- psql -c 'create database api_test;' -U postgres
script:
- api/vendor/bin/php-cs-fixer fix --config=api/.php_cs.dist --diff --dry-run --verbose
- api/vendor/bin/phpstan analyse --configuration=api/phpstan.neon
- api/bin/console lint:yaml api/config api/fixtures
- api/bin/console doctrine:mapping:info
- api/bin/console doctrine:migrations:migrate --no-interaction
- api/bin/console doctrine:schema:validate
- api/bin/console hautelook:fixtures:load --no-interaction
notifications:
email: false