trying to implement tests

This commit is contained in:
Jonas Heinrich 2020-12-02 13:44:53 +01:00
parent 0973599821
commit 9bafd9db70
4 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,6 @@
stages: stages:
- compiling - compiling
- testing
- packaging - packaging
- signing - signing
- publishing - publishing
@ -15,6 +16,21 @@ compiling:
paths: paths:
- node_modules/ - 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: packaging:
stage: packaging stage: packaging
script: script:

View File

@ -26,6 +26,8 @@
[#213](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/213) @onny [#213](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/213) @onny
- More verbose app description for app store - More verbose app description for app store
[#220](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/220) @onny [#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 ## 1.0.0 - 2020-11
### Added ### Added

View File

@ -22,6 +22,8 @@
<template> <template>
<DashboardWidget :items="items" <DashboardWidget :items="items"
:show-more-text="t('radio', 'stations')"
:show-more-url="showMoreUrl"
:loading="state === 'loading'"> :loading="state === 'loading'">
<template #empty-content> <template #empty-content>
<EmptyContent <EmptyContent

View File

@ -24,6 +24,12 @@ import Vue from 'vue'
import router from './router' import router from './router'
import store from './store' import store from './store'
import Dashboard from './components/Dashboard.vue' import Dashboard from './components/Dashboard.vue'
import { translate, translatePlural } from '@nextcloud/l10n'
Vue.prototype.t = translate
Vue.prototype.n = translatePlural
Vue.prototype.OC = window.OC
Vue.prototype.OCA = window.OCA
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
OCA.Dashboard.register('radio', (el) => { OCA.Dashboard.register('radio', (el) => {