mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Set default CI working directory
This commit is contained in:
@@ -40,9 +40,9 @@ else
|
||||
BUILD_DIR="$1"
|
||||
fi
|
||||
|
||||
WORKSPACE=/project
|
||||
WORKSPACE="${HOME}/project"
|
||||
|
||||
cd $WORKSPACE
|
||||
cd "$WORKSPACE"
|
||||
|
||||
# shellcheck disable=SC2166
|
||||
if [[ "$CIRCLE_BRANCH" = release || -n "$CIRCLE_TAG" || -n "$FORCE_RELEASE" || "$(git tag --points-at HEAD 2>/dev/null)" == v* ]]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
ROOTDIR="/project"
|
||||
ROOTDIR="${HOME}/project"
|
||||
BUILDDIR="${ROOTDIR}/build"
|
||||
mkdir -p "${BUILDDIR}" && mkdir -p "$BUILDDIR/deps"
|
||||
|
||||
|
||||
@@ -56,11 +56,11 @@ echo "-- test_docker @ '${PWD}'"
|
||||
# See https://github.blog/2022-04-12-git-security-vulnerability-announced/
|
||||
docker run \
|
||||
--rm \
|
||||
--volume "${PWD}:/project" \
|
||||
--volume "${PWD}:${HOME}/project" \
|
||||
"${IMAGE_NAME}" \
|
||||
bash -c "
|
||||
git config --global --add safe.directory /project &&
|
||||
/project/scripts/ci/${IMAGE_NAME}_test_${IMAGE_VARIANT}.sh
|
||||
git config --global --add safe.directory ${HOME}/project &&
|
||||
${HOME}/project/scripts/ci/${IMAGE_NAME}_test_${IMAGE_VARIANT}.sh
|
||||
"
|
||||
|
||||
echo "-- push_docker"
|
||||
|
||||
Reference in New Issue
Block a user