-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
53 lines (40 loc) · 1.15 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
sudo: false
php:
- 7.1
- 7.2
- 7.3
env:
- DEPS=normal
- DEPS=highest
- DEPS=lowest
matrix:
fast_finish: true
branches:
only:
- master
cache:
directories:
- $HOME/.composer/cache
notifications:
email: false
slack:
secure: bpD3fT1VbGKMSrVCh5NiqQEnKUETpnhrDFXrCjNnQnq0O4aiePmMInpgEDqQiNm7/znjtWSwdyAValSsJXUc1JdkS7rAr95OfKd0vimc7IsSxeqdHYMEFSVrRoJbd6UGyXU6gaexqW02EWHmWvtk18mL2X2M5+o76GamBQWcn/k=
services:
- mysql
before_install:
- composer self-update --1
install:
- if [ "$DEPS" = "normal" ]; then composer install --no-interaction; fi;
- if [ "$DEPS" = "highest" ]; then composer update --no-interaction; fi;
- if [ "$DEPS" = "lowest" ]; then composer update --no-interaction --prefer-lowest --prefer-stable; fi;
before_script:
- mkdir -p build/logs
- mysql -e 'create database `openbuildings/jam`;'
- mysql openbuildings/jam < tests/database/structure/mysql.sql
script:
- XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml