forked from owncloud-archive/maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 894 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
44
45
46
47
language: php
php:
- 5.4
- 5.5
- 5.6
env:
global:
- CORE_BRANCH=master
- APP_NAME=maps
matrix:
- DB=sqlite
branches:
only:
- master
- stable7
before_install:
# - composer install
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../core
- php occ app:enable $APP_NAME
script:
# Test lint
- cd apps/$APP_NAME
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
# Run phpunit tests
- cd tests/unit
- phpunit --configuration phpunit.xml
# Create coverage report
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
matrix:
include:
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=pgsql
allow_failures:
- php: hhvm
fast_finish: true