forked from smartbooster/sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 956 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
36
37
38
39
40
language: php
php:
- 7.3
env:
global:
- SYMFONY_ENV="test"
- DATABASE_URL="mysql://travis:@localhost:3306/smartbooster-sandbox?serverVersion=5.7"
- NGINX_HOST=localhost
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache/yarn
before_install:
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer self-update
- cp .env.travis .env
install:
- export SYMFONY_ENV="test"
- composer install --verbose --prefer-dist --optimize-autoloader --no-progress --no-interaction
- make orm.install ENV=test
- yarn install
script:
- make qualimetry
- bin/phpunit tests --coverage-clover=coverage.clover
- make orm.status ENV=test
- yarn run encore production
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover