Fix info.xml and validate it on Travis

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2018-03-05 16:32:06 +01:00
Родитель d98b913034
Коммит efd304e9ee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: CC42AC2A7F0E56D8
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -14,6 +14,7 @@ addons:
- mysql-server-5.6 - mysql-server-5.6
- mysql-client-core-5.6 - mysql-client-core-5.6
- mysql-client-5.6 - mysql-client-5.6
- libxml2-utils
services: services:
- docker - docker
@ -79,6 +80,11 @@ before_script:
- cd core/apps/twofactor_u2f - cd core/apps/twofactor_u2f
script: script:
# Check info.xml schema validity
- wget https://apps.nextcloud.com/schema/apps/info.xsd
- xmllint appinfo/info.xml --schema info.xsd --noout
- rm info.xsd
# Check PHP syntax errors # Check PHP syntax errors
- find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \; - find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \;

Просмотреть файл

@ -8,7 +8,7 @@
<licence>agpl</licence> <licence>agpl</licence>
<author>Christoph Wurst</author> <author>Christoph Wurst</author>
<namespace>TwoFactorU2F</namespace> <namespace>TwoFactorU2F</namespace>
<category>auth</category> <category>security</category>
<website>https://github.com/nextcloud/twofactor_u2f#readme</website> <website>https://github.com/nextcloud/twofactor_u2f#readme</website>
<bugs>https://github.com/nextcloud/twofactor_u2f/issues</bugs> <bugs>https://github.com/nextcloud/twofactor_u2f/issues</bugs>
@ -25,6 +25,9 @@
<provider>OCA\TwoFactorU2F\Provider\U2FProvider</provider> <provider>OCA\TwoFactorU2F\Provider\U2FProvider</provider>
</two-factor-providers> </two-factor-providers>
<settings>
<personal>OCA\TwoFactorU2F\Settings\Personal</personal>
</settings>
<activity> <activity>
<settings> <settings>
<setting>OCA\TwoFactorU2F\Activity\Setting</setting> <setting>OCA\TwoFactorU2F\Activity\Setting</setting>
@ -33,7 +36,4 @@
<provider>OCA\TwoFactorU2F\Activity\Provider</provider> <provider>OCA\TwoFactorU2F\Activity\Provider</provider>
</providers> </providers>
</activity> </activity>
<settings>
<personal>OCA\TwoFactorU2F\Settings\Personal</personal>
</settings>
</info> </info>