-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
53 lines (38 loc) · 1.09 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
44
45
46
47
48
49
50
51
52
53
language: php
dist: bionic
env:
- DB_HOST=localhost DB_USERNAME=travis
addons:
mariadb: '10.4'
php:
- '7.3'
matrix:
fast_finish: true
sudo: true
before_install:
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
# Database setup
- sudo mysql -e 'create database vost_api;'
- sudo mysql -e 'CREATE USER IF NOT EXISTS travis@localhost; GRANT ALL ON *.* TO travis@localhost;'
# Install project dependencies
- composer install --no-interaction
# Clear everything
- php artisan optimize:clear
# Create optimised classmap
- composer dump-autoload -o
# Check coding standards
- composer cs-check app
- composer cs-check config
- composer cs-check database
- composer cs-check tests
script:
- mkdir -p build/logs
- vendor/bin/phpunit --dump-xdebug-filter build/xdebug-filter.php
- vendor/bin/phpunit --testdox --prepend build/xdebug-filter.php --coverage-text --coverage-clover build/logs/clover.xml
after_success:
- vendor/bin/php-coveralls -v
cache:
directories:
- vendor
- $HOME/.composer/cache