forked from nextcloud/bookmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (69 loc) · 2.75 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: php
php:
- 5.5
- 5.6
- 7
env:
global:
- APP_NAME=bookmarks
matrix:
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable9
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
- DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
matrix:
exclude:
- php: 5.5
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.5
env: DB=sqlite SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- php: 5.5
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.5
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- php: 5.5
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.5
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- php: 5.5
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
- php: 5.5
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
- php: 5.6
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.6
env: DB=mysql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- php: 5.6
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=master
- php: 5.6
env: DB=pgsql SERVER=nextcloud/travis_ci/master SERVER_BRANCH=stable10
- php: 5.6
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=master
- php: 5.6
env: DB=sqlite SERVER=owncloud/administration/master/travis-ci SERVER_BRANCH=stable9.1
fast_finish: true
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
before_install:
# - composer install
- wget https://raw.githubusercontent.com/$SERVER/before_install.sh
- bash ./before_install.sh "$APP_NAME" "$SERVER_BRANCH" "$DB"
- cd ../core || cd ../server
- php occ app:enable $APP_NAME
script:
# Test lint
- cd apps/$APP_NAME
- find . -name \*.php -exec php -l "{}" \;
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"