Added retry option for yarn install

This commit is contained in:
Prarup Gurung committed 2022-07-19 16:33:59 +05:45
1 parent a7832ea2bc
commit 3e897db728
1 file changed
+4 -2
+4 -2
View File
@@ -290,11 +290,12 @@ def yarnInstallUITests():
"name": "yarn-install", "name": "yarn-install",
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION, "image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
"commands": [ "commands": [
"curl -SsfL -o /usr/local/bin/retry https://raw.githubusercontent.com/owncloud-ci/retry/master/retry && chmod +x /usr/local/bin/retry",
". /drone/src/.drone.env", ". /drone/src/.drone.env",
"cd webTestRunner", "cd webTestRunner",
"git checkout $WEB_COMMITID", "git checkout $WEB_COMMITID",
"cd tests/acceptance/", "cd tests/acceptance/",
"yarn install --immutable", "retry -t 3 'yarn install --immutable'",
], ],
}] }]
@@ -854,6 +855,7 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
"MIDDLEWARE_HOST": "http://middleware:3000", "MIDDLEWARE_HOST": "http://middleware:3000",
}, },
"commands": [ "commands": [
"curl -SsfL -o /usr/local/bin/retry https://raw.githubusercontent.com/owncloud-ci/retry/master/retry && chmod +x /usr/local/bin/retry",
". /drone/src/.drone.env", ". /drone/src/.drone.env",
# we need to have Web around for some general step definitions (eg. how to log in) # we need to have Web around for some general step definitions (eg. how to log in)
"git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web", "git clone -b $WEB_BRANCH --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web",
@@ -862,7 +864,7 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
# TODO: settings/package.json has all the acceptance test dependencies # TODO: settings/package.json has all the acceptance test dependencies
# they shouldn't be needed since we could also use them from web:/tests/acceptance/package.json # they shouldn't be needed since we could also use them from web:/tests/acceptance/package.json
"cd /drone/src/services/settings", "cd /drone/src/services/settings",
"yarn install --immutable", "retry -t 3 'yarn install --immutable'",
"make test-acceptance-webui", "make test-acceptance-webui",
], ],
"volumes": [{ "volumes": [{