From 9bafd9db70b305839e1a32222e1867da8869c2bb Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 2 Dec 2020 13:44:53 +0100 Subject: [PATCH] trying to implement tests --- .gitlab-ci.yml | 16 ++++++++++++++++ CHANGELOG.md | 2 ++ src/components/Dashboard.vue | 2 ++ src/dashboard.js | 6 ++++++ 4 files changed, 26 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de2326b..95afe56 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - compiling + - testing - packaging - signing - publishing @@ -15,6 +16,21 @@ compiling: paths: - node_modules/ +testing: + stage: testing + image: registry.gitlab.com/gitlab-org/release-cli:latest + script: + - ls + - php /usr/src/nextcloud/occ maintenance:install --database "sqlite" --admin-user "admin" --admin-pass "password" + - php /usr/src/nextcloud/occ app:enable radio + - php /usr/src/nextcloud/occ maintenance:mode --off + - php /usr/src/nextcloud/occ app:check-code radio + - jshint --verbose radio/src/dashboard.js && echo "jshint OK" || echo "jshint has complaints" + - jshint --verbose radio/src/main.js && echo "jshint OK" || echo "jshint has complaints" + - jshint --verbose radio/src/router.js && echo "jshint OK" || echo "jshint has complaints" + - jshint --verbose radio/src/store.js && echo "jshint OK" || echo "jshint has complaints" + - phpunit --configuration /var/www/html/nextcloud/apps/cospend/phpunit.xml --coverage-text --color=never --coverage-html coverage + packaging: stage: packaging script: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eee50c..4a648bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ [#213](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/213) @onny - More verbose app description for app store [#220](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/220) @onny +- Fix loading dashboard + [#203](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/203) @onny ## 1.0.0 - 2020-11 ### Added diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index 5bd27ee..2b217e2 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -22,6 +22,8 @@