@toptal/davinci-ci 1.15.1-alpha-SPT-2710-overlay-option.20 → 2.0.1-alpha-dependabot-npm-and-yarn-typescript-eslint-parser-5.26.0.1
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.
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/src/configs/jobs/build-image/Jenkinsfile +2 -0
- package/src/configs/jobs/build-release-image/Jenkinsfile +2 -0
- package/src/configs/jobs/deploy-helm-run-trigger/Jenkinsfile +2 -0
- package/src/configs/jobs/master-main/Jenkinsfile +5 -1
- package/src/configs/jobs/pr-tests/Jenkinsfile +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1326](https://github.com/toptal/davinci/pull/1326) [`77adee1f`](https://github.com/toptal/davinci/commit/77adee1f003f6336279ca4ac24476bdece8d9828) Thanks [@augustobmoura](https://github.com/augustobmoura)! - - rename the command `davinci qa e2e` to `davinci qa integration`
|
|
8
|
+
|
|
3
9
|
## 1.15.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci-ci",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-alpha-dependabot-npm-and-yarn-typescript-eslint-parser-5.26.0.1+dc2eb180",
|
|
4
4
|
"description": "Continuos integrations tools for frontend projects",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@commitlint/cli": "^16.2.4",
|
|
34
34
|
"@commitlint/config-conventional": "^16.0.0",
|
|
35
|
-
"@toptal/davinci-cli-shared": "1.5.2-alpha-
|
|
35
|
+
"@toptal/davinci-cli-shared": "1.5.2-alpha-dependabot-npm-and-yarn-typescript-eslint-parser-5.26.0.112+dc2eb180",
|
|
36
36
|
"danger": "^11.0.5",
|
|
37
37
|
"markdown-table": "^2.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "dc2eb18062860ef93ea6ad07646701d66af9a0ce"
|
|
40
40
|
}
|
|
@@ -4,6 +4,7 @@ image = null
|
|
|
4
4
|
|
|
5
5
|
repositoryName = REPOSITORY_NAME
|
|
6
6
|
repositorySSHUrl = "git@github.com:toptal/${repositoryName}.git"
|
|
7
|
+
env.REPO_NAME_FOR_COMMIT = "toptal/${repositoryName}"
|
|
7
8
|
|
|
8
9
|
pipeline {
|
|
9
10
|
agent { label 'slave_aws' }
|
|
@@ -47,6 +48,7 @@ pipeline {
|
|
|
47
48
|
additionalBehaviours: [
|
|
48
49
|
cleanBeforeCheckout: true
|
|
49
50
|
])
|
|
51
|
+
script { env.COMMIT_FOR_ANVIL = gitCommit() }
|
|
50
52
|
success "== Checked out ${BRANCH} at ${gitCommit()}"
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -8,6 +8,7 @@ release_docker_image = null
|
|
|
8
8
|
repositoryName = REPOSITORY_NAME
|
|
9
9
|
repositorySSHUrl = "git@github.com:toptal/${repositoryName}.git"
|
|
10
10
|
releaseImageName = "${repositoryName}-release"
|
|
11
|
+
env.REPO_NAME_FOR_COMMIT = "toptal/${repositoryName}"
|
|
11
12
|
|
|
12
13
|
pipeline {
|
|
13
14
|
agent { label 'slave_aws' }
|
|
@@ -47,6 +48,7 @@ pipeline {
|
|
|
47
48
|
additionalBehaviours: [
|
|
48
49
|
cleanBeforeCheckout: true
|
|
49
50
|
])
|
|
51
|
+
script { env.COMMIT_FOR_ANVIL = gitCommit() }
|
|
50
52
|
success "== Checked out ${BRANCH} at ${gitCommit()}"
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -13,6 +13,7 @@ repositorySSHUrl = "git@github.com:toptal/${repositoryName}.git"
|
|
|
13
13
|
targetBranch = "master"
|
|
14
14
|
configDavinciYaml = "davinci.yaml"
|
|
15
15
|
def repoBullhornSlackChannel
|
|
16
|
+
env.REPO_NAME_FOR_COMMIT = "toptal/${repositoryName}"
|
|
16
17
|
|
|
17
18
|
buildImageJobName = "${repositoryName}-build-image"
|
|
18
19
|
buildReleaseImageJobName = "${repositoryName}-build-release-image"
|
|
@@ -96,6 +97,7 @@ pipeline {
|
|
|
96
97
|
|
|
97
98
|
info "Git commit: ${gitCommit()}"
|
|
98
99
|
info "Git branch: ${gitBranch()}"
|
|
100
|
+
script { env.COMMIT_FOR_ANVIL = gitCommit() }
|
|
99
101
|
success 'Checkout finished'
|
|
100
102
|
|
|
101
103
|
script {
|
|
@@ -392,10 +392,14 @@ pipeline {
|
|
|
392
392
|
|
|
393
393
|
steps {
|
|
394
394
|
script {
|
|
395
|
+
def packageJson = readJSON(file: 'package.json', returnPojo: true)
|
|
396
|
+
def hasIntegrationCmd = 'test:integration:ci' in (packageJson.scripts ?: [:])
|
|
397
|
+
def testCommand = hasIntegrationCmd ? 'integration' : 'e2e'
|
|
398
|
+
|
|
395
399
|
sh """
|
|
396
400
|
docker run \
|
|
397
401
|
--user="root" \
|
|
398
|
-
--rm gcr.io/toptal-hub/${repositoryName}:${commitId} /bin/bash -c "apt update && apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && yarn cypress install > /dev/null && yarn test:
|
|
402
|
+
--rm gcr.io/toptal-hub/${repositoryName}:${commitId} /bin/bash -c "apt update && apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && yarn cypress install > /dev/null && yarn test:$testCommand:ci"
|
|
399
403
|
"""
|
|
400
404
|
}
|
|
401
405
|
} //steps
|
|
@@ -15,6 +15,9 @@ commitId = params.GITHUB_PR_HEAD_SHA
|
|
|
15
15
|
repositoryName = repositoryUrl.tokenize('/').last().split("\\.")[0]
|
|
16
16
|
repositorySSHUrl = "git@github.com:toptal/${repositoryName}.git"
|
|
17
17
|
|
|
18
|
+
env.COMMIT_FOR_ANVIL = commitId
|
|
19
|
+
env.REPO_NAME_FOR_COMMIT = "toptal/${repositoryName}"
|
|
20
|
+
|
|
18
21
|
buildImageJobName = "${repositoryName}-build-image"
|
|
19
22
|
buildReleaseImageJobName = "${repositoryName}-build-release-image"
|
|
20
23
|
deployTemployJobName = "${repositoryName}-temploy-helm-run"
|
|
@@ -255,10 +258,14 @@ pipeline {
|
|
|
255
258
|
script {
|
|
256
259
|
ghHelper.notifyPR('Cypress Tests', 'PENDING', 'running', "${commitId}", "${BUILD_URL}", repositoryName)
|
|
257
260
|
|
|
261
|
+
def packageJson = readJSON(file: 'package.json', returnPojo: true)
|
|
262
|
+
def hasIntegrationCmd = 'test:integration:ci' in (packageJson.scripts ?: [:])
|
|
263
|
+
def testCommand = hasIntegrationCmd ? 'integration' : 'e2e'
|
|
264
|
+
|
|
258
265
|
sh """
|
|
259
266
|
docker run \
|
|
260
267
|
--user="root" \
|
|
261
|
-
--rm gcr.io/toptal-hub/${repositoryName}:${commitId} /bin/bash -c "apt update && apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && yarn cypress install > /dev/null && yarn test:
|
|
268
|
+
--rm gcr.io/toptal-hub/${repositoryName}:${commitId} /bin/bash -c "apt update && apt-get -y install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && yarn cypress install > /dev/null && yarn test:$testCommand:ci"
|
|
262
269
|
"""
|
|
263
270
|
}
|
|
264
271
|
} //steps
|