mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
Format all shell scripts
This commit is contained in:
parent
2e2218d9a9
commit
d59a3ad777
78 changed files with 4489 additions and 4475 deletions
|
|
@ -13,6 +13,6 @@ docker push gcr.io/cp2k-org-project/img_cp2kprecommit:${SHORT_SHA}
|
|||
docker push gcr.io/cp2k-org-project/img_cp2kprecommit:latest
|
||||
|
||||
gcloud run deploy cp2k-precommit --platform=managed --region=us-central1 \
|
||||
--image=gcr.io/cp2k-org-project/img_cp2kprecommit:${SHORT_SHA}
|
||||
--image=gcr.io/cp2k-org-project/img_cp2kprecommit:${SHORT_SHA}
|
||||
|
||||
#EOF
|
||||
|
|
|
|||
|
|
@ -5,27 +5,27 @@
|
|||
trap "exit" INT
|
||||
|
||||
if [ -z "${GIT_REF}" ]; then
|
||||
# Server mode.
|
||||
gunicorn --bind=:8080 --workers=1 --threads=8 --timeout=0 precommit_server:app &
|
||||
wait # Can be interrupted with ctrl-C.
|
||||
# Server mode.
|
||||
gunicorn --bind=:8080 --workers=1 --threads=8 --timeout=0 precommit_server:app &
|
||||
wait # Can be interrupted with ctrl-C.
|
||||
else
|
||||
# CI mode.
|
||||
echo -e "\n========== Fetching Git Commit =========="
|
||||
cd /workspace/cp2k
|
||||
git fetch --quiet origin "${GIT_BRANCH}"
|
||||
git reset --quiet --hard "${GIT_REF}"
|
||||
git submodule update --init --recursive
|
||||
git --no-pager log -1 --pretty='%nCommitSHA: %H%nCommitTime: %ci%nCommitAuthor: %an%nCommitSubject: %s%n'
|
||||
# CI mode.
|
||||
echo -e "\n========== Fetching Git Commit =========="
|
||||
cd /workspace/cp2k
|
||||
git fetch --quiet origin "${GIT_BRANCH}"
|
||||
git reset --quiet --hard "${GIT_REF}"
|
||||
git submodule update --init --recursive
|
||||
git --no-pager log -1 --pretty='%nCommitSHA: %H%nCommitTime: %ci%nCommitAuthor: %an%nCommitSubject: %s%n'
|
||||
|
||||
echo -e "\n========== Starting Precommit Server =========="
|
||||
cd ./tools/precommit/
|
||||
gunicorn --bind=:8080 --workers=1 --threads=8 --timeout=0 precommit_server:app &> server.logs &
|
||||
sleep 3
|
||||
cat server.logs
|
||||
echo -e "\n========== Starting Precommit Server =========="
|
||||
cd ./tools/precommit/
|
||||
gunicorn --bind=:8080 --workers=1 --threads=8 --timeout=0 precommit_server:app &> server.logs &
|
||||
sleep 3
|
||||
cat server.logs
|
||||
|
||||
echo -e "\n========== Running Precommit Checks =========="
|
||||
export CP2K_PRECOMMIT_SERVER="http://127.0.0.1:8080"
|
||||
./precommit.py --no-cache --progressbar-wait=10 || true
|
||||
echo -e "\n========== Running Precommit Checks =========="
|
||||
export CP2K_PRECOMMIT_SERVER="http://127.0.0.1:8080"
|
||||
./precommit.py --no-cache --progressbar-wait=10 || true
|
||||
fi
|
||||
|
||||
#EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue