Skip to content

Commit

Permalink
Testing debug
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Nov 5, 2019
1 parent 59f8f32 commit 8ada0f6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 20 deletions.
8 changes: 6 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name: cypress-e2e-testing master
services:
# nextcloud server
- name: server
image: nextcloudci/server:server-10
image: nextcloudci/server:server-15
commands:
# Add app sources to the app directory
- export BRANCH=$DRONE_TARGET_BRANCH
Expand All @@ -37,7 +37,7 @@ services:
- chown -R www-data:www-data /var/www/html/data

# Install nextcloud, watch logs and run apache
- bash /initnc.sh
- bash /usr/local/bin/initnc.sh

steps:
# clone and build the app
Expand Down Expand Up @@ -89,6 +89,7 @@ steps:
CYPRESS_baseUrl: http://server/index.php/
LOGIN: login
commands:
- export DEBUG=cypress:*
- cd /drone/src
- $(npm bin)/cypress run --record --key $CYPRESS_RECORD_TOKEN --parallel --ci-build-id ci-$DRONE_BUILD_NUMBER-master

Expand Down Expand Up @@ -117,6 +118,7 @@ steps:
CYPRESS_baseUrl: http://server/index.php/
LOGIN: login
commands:
- export DEBUG=cypress:*
- cd /drone/src
- $(npm bin)/cypress run --record --key $CYPRESS_RECORD_TOKEN --parallel --ci-build-id ci-$DRONE_BUILD_NUMBER-master

Expand Down Expand Up @@ -145,6 +147,7 @@ steps:
CYPRESS_baseUrl: http://server/index.php/
LOGIN: login
commands:
- export DEBUG=cypress:*
- cd /drone/src
- $(npm bin)/cypress run --record --key $CYPRESS_RECORD_TOKEN --parallel --ci-build-id ci-$DRONE_BUILD_NUMBER-master

Expand Down Expand Up @@ -173,6 +176,7 @@ steps:
CYPRESS_baseUrl: http://server/index.php/
LOGIN: login
commands:
- export DEBUG=cypress:*
- cd /drone/src
- $(npm bin)/cypress run --record --key $CYPRESS_RECORD_TOKEN --parallel --ci-build-id ci-$DRONE_BUILD_NUMBER-master

Expand Down
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-class-properties', { loose: true }]
['@babel/plugin-proposal-class-properties', { loose: true }],
'inline-json-import'
],
presets: [
[
Expand Down
2 changes: 1 addition & 1 deletion cypress/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
echo "Launching docker server for the $appname app"
dockername="cypress_testing_$appname"

docker run -p 8000:80 --rm --name $dockername --volume $(pwd):/var/www/html/apps/$appname --env BRANCH=master --detach nextcloudci/server:server-10
docker run -p 8000:80 --rm --name $dockername --volume $(pwd):/var/www/html/apps/$appname --env BRANCH=master --detach nextcloudci/server:server-15
sleep 10
docker exec --user www-data $dockername php occ app:enable $appname
docker exec --user www-data $dockername php occ config:system:set force_language --value en
Expand Down
26 changes: 13 additions & 13 deletions js/viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Listener/LoadViewerScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public function handle(Event $event): void {
return;
}

Util::addScript(Application::APP_ID, Application::APP_ID);
Util::addScript(Application::APP_ID, 'viewer');
}
}
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"not dead"
],
"engines": {
"node": "11"
"node": ">=10.0.0"
},
"devDependencies": {
"@babel/core": "^7.6.4",
Expand All @@ -64,6 +64,7 @@
"@nextcloud/browserslist-config": "^1.0.0",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.6",
"babel-plugin-inline-json-import": "^0.3.2",
"browserslist-config-nextcloud": "0.1.0",
"css-loader": "^3.2.0",
"cypress": "^3.4.1",
Expand Down

0 comments on commit 8ada0f6

Please sign in to comment.