Browse Source

fix(CI): Fix server setup in cypress by overwriting all files in shallow-server

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v28.0.0beta1
Joas Schilling 10 months ago
parent
commit
ae54cc05aa
No account linked to committer's email address
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      cypress/dockerNode.ts

+ 14
- 0
cypress/dockerNode.ts View File

@@ -143,8 +143,22 @@ export const applyChangesToNextcloud = async function() {
'./dist',
'./lib',
'./ocs',
'./ocs-provider',
'./resources',
'./console.php',
'./cron.php',
'./index.php',
'./occ',
'./public.php',
'./remote.php',
'./status.php',
'./version.php',
]

folderPaths.forEach((path) => {
console.log(`├─ Copying ${path}`)
})

// Tar-streaming the above folders into the container
const serverTar = tar.c({ gzip: false }, folderPaths)
await container.putArchive(serverTar, {

Loading…
Cancel
Save