@jahia/cypress 3.18.0 → 3.19.0
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/ci.build.sh +2 -2
- package/env.Dockerfile +14 -13
- package/package.json +1 -1
package/ci.build.sh
CHANGED
|
@@ -39,6 +39,6 @@ if [ -d ./jahia-module ]; then
|
|
|
39
39
|
fi
|
|
40
40
|
cd ..
|
|
41
41
|
fi
|
|
42
|
+
YARN_VERSION=${YARN_VERSION:-1.22.22}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
docker build -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
|
|
44
|
+
docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
|
package/env.Dockerfile
CHANGED
|
@@ -2,25 +2,26 @@ FROM cypress/browsers:node-20.10.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.
|
|
|
2
2
|
|
|
3
3
|
ARG MAVEN_VER="3.8.1"
|
|
4
4
|
ARG MAVEN_BASE_URL="https://archive.apache.org/dist/maven/maven-3"
|
|
5
|
+
ARG YARN_VERSION="1.22.22"
|
|
5
6
|
|
|
6
|
-
RUN apt-get update && apt-get install -y jq
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
RUN apt-get update && apt-get install -y jq curl ; \
|
|
8
|
+
adduser --disabled-password jahians ; \
|
|
9
|
+
mkdir -p /home/jahians/run-artifacts /home/jahians/results /home/jahians/cypress/plugins; \
|
|
10
|
+
npm install -g corepack ; \
|
|
11
|
+
corepack enable
|
|
9
12
|
|
|
10
13
|
USER jahians
|
|
11
14
|
WORKDIR /home/jahians
|
|
12
15
|
|
|
13
|
-
COPY --chown=jahians:jahians package.json yarn.lock /home/jahians/
|
|
14
|
-
|
|
15
|
-
RUN mkdir -p /home/jahians/run-artifacts /home/jahians/results /home/jahians/cypress/plugins
|
|
16
|
-
|
|
17
|
-
#CI=true reduces the verbosity of the installation logs
|
|
18
|
-
RUN CI=true yarn install --non-interactive
|
|
19
|
-
|
|
20
16
|
COPY --chown=jahians:jahians . /home/jahians
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
#CI=true reduces the verbosity of the installation logs
|
|
19
|
+
RUN CI=true yarn set version ${YARN_VERSION} \
|
|
20
|
+
CI=true yarn install; \
|
|
21
|
+
ls -al /home/jahians/ ; \
|
|
22
|
+
/home/jahians/node_modules/.bin/cypress install; \
|
|
23
|
+
mkdir -p .m2; \
|
|
24
|
+
cp maven.settings.xml .m2/settings.xml; \
|
|
25
|
+
exit 0
|
|
25
26
|
|
|
26
27
|
CMD /bin/bash -c /home/jahians/env.run.sh
|