Added retry option for yarn install

This commit is contained in:
Prarup Gurung
2022-07-19 13:17:29 +05:45
parent a7832ea2bc
commit 3e897db728

View File

@@ -290,11 +290,12 @@ def yarnInstallUITests():
"name": "yarn-install",
"image": OC_CI_NODEJS % DEFAULT_NODEJS_VERSION,
"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",
"cd webTestRunner",
"git checkout $WEB_COMMITID",
"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",
},
"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",
# 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",
@@ -862,7 +864,7 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
# 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
"cd /drone/src/services/settings",
"yarn install --immutable",
"retry -t 3 'yarn install --immutable'",
"make test-acceptance-webui",
],
"volumes": [{