itemengine-cypress-automation 1.0.6 → 1.0.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.
- package/Dockerfile +2 -8
- package/deploy.yaml +4 -4
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +5 -0
package/Dockerfile
CHANGED
@@ -2,17 +2,11 @@
|
|
2
2
|
FROM cypress/base:14.19.0
|
3
3
|
FROM cypress/browsers:node14.19.0-chrome100-ff99-edge
|
4
4
|
|
5
|
-
RUN node --version
|
6
|
-
RUN npm --version
|
7
|
-
|
8
|
-
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
|
9
|
-
&& unzip awscliv2.zip \
|
10
|
-
&& ./aws/install
|
11
|
-
|
12
5
|
WORKDIR /ie-e2e
|
6
|
+
|
13
7
|
COPY . ./
|
14
8
|
|
15
|
-
|
9
|
+
ENV CI=1
|
16
10
|
|
17
11
|
RUN chmod +x ./run.sh
|
18
12
|
|
package/deploy.yaml
CHANGED
package/package.json
CHANGED
@@ -10,6 +10,8 @@ let startTime;
|
|
10
10
|
* @param {string} startTime
|
11
11
|
*/
|
12
12
|
function setCiBuildId(user, startTime) {
|
13
|
+
console.log('process.env.fileConfig', process.env.fileConfig)
|
14
|
+
console.log('process.argv', process.argv)
|
13
15
|
let env = 'staging'//process.env.CYPRESS_ENV;
|
14
16
|
let tagName = process.argv.slice(2).length > 0 ? process.argv.slice(2) : "--";
|
15
17
|
return `${user}[E2E][env:${env}][tags:${tagName}][${startTime}]`
|
@@ -29,6 +31,9 @@ function runSorryCypress(ciBuildId) {
|
|
29
31
|
* @method runSorryCypressSpinnaker
|
30
32
|
*/
|
31
33
|
export function runSorryCypressSpinnaker() {
|
34
|
+
//console.log('process.env.fileConfig', process.env.fileConfig)
|
35
|
+
console.log('process.argv', process.argv)
|
36
|
+
console.log('process.env.STAGE', process.env.STAGE)
|
32
37
|
//startTime = process.env.START_TIME;
|
33
38
|
//ciBuildId = setCiBuildId("spinnaker", startTime);
|
34
39
|
startTime = Math.round(Date.now() / 100000);
|