-
Notifications
You must be signed in to change notification settings - Fork 43
/
.scrutinizer.yml
73 lines (64 loc) · 2.21 KB
/
.scrutinizer.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
build:
environment:
php:
pecl_extensions:
- zip
variables:
APP_NAME: cms_pico
NEXTCLOUD: releases/latest
GPGKEY: 28806A878AE423A28372792ED75899B9A724937A
nodes:
analysis:
environment:
php:
version: 8.1
dependencies:
override:
- curl -L -o ~/nextcloud.tar.bz2 --insecure https://download.nextcloud.com/server/$NEXTCLOUD.tar.bz2
- curl -L -o ~/nextcloud.tar.bz2.asc --insecure https://download.nextcloud.com/server/$NEXTCLOUD.tar.bz2.asc
- export GNUPGHOME="$(mktemp -d)"
- gpg --batch --keyserver keyserver.ubuntu.com --recv-keys $GPGKEY
- gpg --batch --verify ~/nextcloud.tar.bz2.asc ~/nextcloud.tar.bz2
project_setup:
override:
- php --info
- composer --version
- echo Installing $APP_NAME on Nextcloud branch $NEXTCLOUD
- make build-dev version=latest
- cp build/$APP_NAME-latest.tar.gz ~/$APP_NAME.tar.gz
- tar xfjv ~/nextcloud.tar.bz2
- tar xfjv ~/nextcloud.tar.bz2 -C ~
- tar xfzv ~/$APP_NAME.tar.gz -C ~/nextcloud/apps
- cd ~/nextcloud
- php ./occ --version
- php ./occ maintenance:install --database "sqlite" --admin-user "admin" --admin-pass "admin"
- php ./occ app:enable $APP_NAME
tests:
override:
- cd ~/build
- php-scrutinizer-run --enable-security-analysis
- phpcs-run --standard=.phpcs.xml
- js-scrutinizer-run
- cd ~/nextcloud
- php ./occ app:check-code $APP_NAME -c private
- php ./occ app:check-code $APP_NAME -c strong-comparison
- php ./occ app:check-code $APP_NAME -c deprecation
- cd ~/nextcloud/apps/$APP_NAME
- command: php ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --coverage-clover ~/build/tests/clover.xml
idle_timeout: 1200
coverage:
file: tests/clover.xml
format: clover
checks:
php: true
javascript: true
filter:
excluded_paths:
- appdata/plugins/
- appdata/themes/
- build/
- l10n/
- tests/
dependency_paths:
- vendor/
- nextcloud/