@amanat-qa/utils-frontend 5.2.6 → 5.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,8 +35,10 @@ var jobs = testSuites.map(function (suite) {
|
|
|
35
35
|
tags: ['k8s'],
|
|
36
36
|
before_script: [
|
|
37
37
|
// eslint-disable-next-line no-template-curly-in-string
|
|
38
|
-
'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'docker login --username $USER --password $PASS registry.gitlab.com'
|
|
39
|
-
|
|
38
|
+
'echo "${ENV_TEST}" | tr -d \'\\r\' > ./.env.test', 'apt-get update && apt-get install -y jq', 'docker login --username $USER --password $PASS registry.gitlab.com'].concat(_toConsumableArray(projectName !== 'amanat24' ? ['service docker start'] : []), ['npm ci --prefix ./cypress', 'npm install @amanat-qa/utils-frontend@latest --prefix ./cypress --no-save', 'npm run lint --prefix ./cypress',
|
|
39
|
+
// eslint-disable-next-line no-template-curly-in-string
|
|
40
|
+
'REPO_NAME="${CI_PROJECT_NAME%_*}" && PROJECT_ID=$(curl --silent --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects?search=$REPO_NAME" | jq -r ".[] | select(.path == \\"$REPO_NAME\\") | .id") && if [ -z "$PROJECT_ID" ]; then echo "Project $REPO_NAME not found"; exit 1; fi && FULL_SHA=$(curl --silent --fail --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/commits?ref_name=$CI_COMMIT_REF_NAME" | jq -r ".[0].id") && export LATEST_COMMIT="${FULL_SHA:0:8}" && echo "Run tests on image from project $REPO_NAME with branch $CI_COMMIT_REF_NAME and commit $LATEST_COMMIT"']),
|
|
41
|
+
script: ['npm run start:ci --prefix ./cypress', "file=".concat(suite, " npm run test --prefix ./cypress")],
|
|
40
42
|
artifacts: {
|
|
41
43
|
when: 'always',
|
|
42
44
|
expire_in: '1 month',
|