trying to implement tests
This commit is contained in:
parent
0973599821
commit
9bafd9db70
@ -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:
|
||||
|
@ -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
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
<template>
|
||||
<DashboardWidget :items="items"
|
||||
:show-more-text="t('radio', 'stations')"
|
||||
:show-more-url="showMoreUrl"
|
||||
:loading="state === 'loading'">
|
||||
<template #empty-content>
|
||||
<EmptyContent
|
||||
|
@ -24,6 +24,12 @@ import Vue from 'vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
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', () => {
|
||||
OCA.Dashboard.register('radio', (el) => {
|
||||
|
Loading…
Reference in New Issue
Block a user