blob: 79dac770433e6e4c726ccfebd201fc42441b5439 (
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
45
46
47
48
49
50
51
52
|
dist: bionic
sudo: false
language: php
php:
- 7.2
- 7.3
- 7.4
services:
- mysql
- postgresql
env:
global:
- BRANCH=stable19
- DB=mysql
- LINT=false
matrix:
include:
- php: 7.2
env: DB=sqlite
- php: 7.3
env: DB=sqlite
- php: 7.4
env: DB=sqlite LINT=true
- env: DB=pgsql
- env: BRANCH=stable17
- env: BRANCH=stable18
- php: 7.4
env: BRANCH=master
allow_failures:
- php: 7.4
env: BRANCH=master
install:
- which mysql && until mysql -u root -e "show status" &>/dev/null; do sleep 1; done
- ./tests/travis/install-nc.sh
# Note the install script should make sure we are in the apps/ojsxc directory
script:
- composer install
- ./vendor/bin/phpunit -c phpunit.xml --coverage-clover=unit-coverage.xml
- ./vendor/bin/phpunit -c phpunit.integration.xml --coverage-clover=integration-coverage.xml
- cat ../../data/nextcloud.log
- if [[ "$LINT" = 'true' ]]; then vendor/bin/php-cs-fixer fix --dry-run; fi
- rm -rf vendor/ && ../../occ app:check-code ojsxc || true
after_success:
- bash <(curl -s https://codecov.io/bash)
|