blob: f18097aac4ee1bfecda4c1df8abe4c60bdf10db4 (
plain)
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
|
language: php
php:
- 7.0
- 7.1
- 7.2
env:
global:
- CORE_BRANCH=master
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
sudo: true
before_install:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- bash ./before_install.sh survey_server $CORE_BRANCH $DB
script:
# Test lint
- cd ../server
- cd apps/survey_server
- find . -name \*.php -exec php -l "{}" \;
# 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: 7.0
env: DB=mysql
- php: 7.0
env: DB=pgsql
fast_finish: true
|