35 lines
No EOL
992 B
Bash
35 lines
No EOL
992 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd ~ || exit
|
|
|
|
verbosity="${BENCH_VERBOSITY_FLAG:-}"
|
|
|
|
start_time=$(date +%s)
|
|
echo "::group::Install Bench"
|
|
pip install frappe-bench
|
|
echo "::endgroup::"
|
|
end_time=$(date +%s)
|
|
echo "Time taken to Install Bench: $((end_time - start_time)) seconds"
|
|
|
|
git config --global init.defaultBranch main
|
|
git config --global advice.detachedHead false
|
|
|
|
start_time=$(date +%s)
|
|
echo "::group::Init Bench & Install Frappe"
|
|
bench $verbosity init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}"
|
|
echo "::endgroup::"
|
|
end_time=$(date +%s)
|
|
echo "Time taken to Init Bench & Install Frappe: $((end_time - start_time)) seconds"
|
|
|
|
cd ~/frappe-bench || exit
|
|
|
|
start_time=$(date +%s)
|
|
echo "::group::Install App Requirements"
|
|
bench $verbosity setup requirements --dev
|
|
if [ "$TYPE" == "ui" ]
|
|
then
|
|
bench $verbosity setup requirements --node;
|
|
fi
|
|
end_time=$(date +%s)
|
|
echo "::endgroup::"
|
|
echo "Time taken to Install App Requirements: $((end_time - start_time)) seconds" |