-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (31 loc) · 963 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
41
42
43
language: php
services:
- mysql
sudo: false
php:
- 7.3
matrix:
fast_finish: true
branches:
only:
- master
cache:
directories:
- $HOME/.composer/cache
notifications:
email: false
slack:
secure: jkZDWqI+za7mMP1RnozFmsB6SM2THjp59elBEpMrewjG270NpCdB2fCc2XFSeHVJ1vyPax/Q139CsWhctpD4smA4An1GmTsvQyVcWVvKsqsrTG0q22cBx+WKJKL9cwxQ+UQSbvySVCY6V3oXaqmaPBK97oqHZOc+FET2Z9WDHhc=
before_install:
- composer self-update --1
install:
- travis_retry composer install --no-interaction --no-progress --prefer-dist
before_script:
- mkdir -p build/logs
- mysql -e 'create database `OpenBuildings/promotions`;'
- mysql --default-character-set=utf8 OpenBuildings/promotions < tests/test_data/structure.sql
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml