CI: Fix floccus tests

This commit is contained in:
Marcel Klehr 2020-07-07 15:31:51 +02:00
parent afbc3a9d6e
commit 2f70eece2e
2 changed files with 17 additions and 4 deletions

View File

@ -71,7 +71,7 @@ jobs:
MYSQL_HOST: mysql
NEXTCLOUD_TRUSTED_DOMAINS: nextcloud
volumes:
- apps:/home/runner/work/floccus/floccus/apps
- /home/runner/work/bookmarks/bookmarks/apps:/var/www/html/custom_apps
options: --name nextcloud
mysql:
image: mariadb:latest
@ -89,18 +89,31 @@ jobs:
- name: Checkout bookmarks app
uses: actions/checkout@v2
with:
path: apps/${{ env.APP_NAME }}
path: ${{ env.APP_NAME }}
if: matrix.floccus-adapter == 'nextcloud-folders'
- name: Enable bookmarks app
shell: bash
run: |
cd ${{ env.APP_NAME }}
composer install
if: matrix.floccus-adapter == 'nextcloud-folders'
- name: Enable bookmarks app
shell: bash
run: |
sudo cp -R ${{ env.APP_NAME }} apps/
NEXT_WAIT_TIME=0
until [ $NEXT_WAIT_TIME -eq 25 ] || docker exec --user www-data nextcloud php occ app:enable ${{ env.APP_NAME }}; do
sleep $(( NEXT_WAIT_TIME++ ))
done
[ $NEXT_WAIT_TIME -lt 25 ]
if: matrix.floccus-adapter != 'fake'
if: matrix.floccus-adapter == 'nextcloud-folders'
- name: List apps
shell: bash
run: |
docker exec --user www-data nextcloud php occ app:list
- name: Enable APCu
run: |

View File

@ -17,7 +17,7 @@ Requirements:
- mbstring: *
- Nextcloud v17+
]]></description>
<version>3.2.4</version>
<version>3.2.5</version>
<licence>agpl</licence>
<author mail="blizzz@arthur-schiwon.de" homepage="https://www.arthur-schiwon.de">Arthur Schiwon</author>
<author mail="mklehr@gmx.net">Marcel Klehr</author>