Skip to content

Commit

Permalink
run tests with ocis latest
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Dec 10, 2021
1 parent b949aeb commit ecca46b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def acceptancePipeline():
"steps":
composerInstall() +
copyConfigs() +
makeNodeGenerate() +
makeGoGenerate() +
buildOCIS() +
# makeNodeGenerate() +
# makeGoGenerate() +
# buildOCIS() +
waitForServices() +
oC10Service() +
waitForOC10() +
Expand Down Expand Up @@ -237,11 +237,13 @@ def ocisServer():

return [{
"name": "ocis",
"image": OC_CI_ALPINE,
"image": OCIS_IMG,
"environment": environment,
"detach": True,
"commands": [
"whoami",
"cd /mnt/data",
"ls -al",
"%s/ocis/server.sh" % (DRONE_CONFIG_PATH),
],
"volumes": [
Expand All @@ -259,7 +261,7 @@ def ocisServer():
},
],
"user": "33:33",
"depends_on": ["fix-permissions", "build-ocis"],
"depends_on": ["fix-permissions"],
}]

def oC10Service():
Expand Down Expand Up @@ -502,6 +504,8 @@ def fixPermissions():
"chown -R www-data:www-data /var/www/owncloud/apps",
"chmod -R 777 /var/www/owncloud/apps",
"chmod -R 777 /mnt/data/",
"cd /mnt/data",
"ls -al",
],
"volumes": [
{
Expand Down Expand Up @@ -543,5 +547,5 @@ def waitForOCIS():
"commands": [
"wait-for -it ocis:9200 -t 300",
],
"depends_on": ["build-ocis"],
"depends_on": ["wait-for-oc10"],
}]
2 changes: 1 addition & 1 deletion tests/parallelDeployAcceptance/drone/ocis/server.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
cd /drone/src/ocis/bin &&
./ocis server &
ocis server &
sleep 10

# It is nice to have the following services stopped
Expand Down

0 comments on commit ecca46b

Please sign in to comment.