Skip to content

Commit e89c5c9

Browse files
committed
ci: start the bare-metal build before the jahia image pull
1 parent 488334c commit e89c5c9

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎tests/ci.prestart.bare-metal.sh‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
#!/bin/bash
2-
# Starts Jahia and the module build in the background, as early as possible in the job.
2+
# Starts the module build and Jahia in the background, as early as possible in the job.
33
# ci.build.bare-metal.sh waits for the build.
44
set -euo pipefail
55

66
# Provides the compose variables, SUPER_USER_PASSWORD among them
77
source ./set-env.sh
88

9-
docker compose up -d --renew-anon-volumes jahia < /dev/null
10-
119
mkdir -p artifacts
12-
# The build job runs the unit tests: `package` stops before the yarn tests, -DskipTests skips the
13-
# Java ones. javascript-create-module is not provisioned. The background process holds none of the
14-
# step's streams, so the step ends without waiting for it
10+
# The build is the longest step, so it starts before the Jahia image pull. The build job runs the
11+
# unit tests: `package` stops before the yarn tests, -DskipTests skips the Java ones.
12+
# javascript-create-module is not provisioned. The background process holds none of the step's
13+
# streams, so the step ends without waiting for it
1514
(
1615
set +e
1716
JAVA_HOME="$JAVA_HOME_17_X64" mvn -B -U -ntp -f ../pom.xml -s ../.github/maven.settings.xml \
1817
-pl '!javascript-create-module' -DskipTests clean package > artifacts/mvn.log 2>&1
1918
echo $? > artifacts/mvn.status
2019
) < /dev/null > /dev/null 2>&1 &
20+
21+
docker compose up -d --renew-anon-volumes jahia < /dev/null

0 commit comments

Comments
 (0)