Skip to content

Commit

Permalink
fix: post_install through install
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Aug 22, 2024
1 parent 68473ba commit 319f7e0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ sed -i 's/socketio:/# socketio:/g' Procfile
sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile

bench get-app erpnext --branch "$BRANCH_TO_CLONE" --resolve-deps

bench --site test_site restore ${GITHUB_WORKSPACE}/20240822_151612-patch_test_localhost-database.sql.gz

bench get-app india_compliance "${GITHUB_WORKSPACE}"
bench setup requirements --dev

Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/post_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ jobs:
env:
BRANCH_TO_CLONE: ${{ github.base_ref }}

- name: Run Patch Tests
run: |
cd ~/frappe-bench/
bench remove-app india_compliance --force
jq 'del(.install_apps)' ~/frappe-bench/sites/test_site/site_config.json > tmp.json
mv tmp.json ~/frappe-bench/sites/test_site/site_config.json
bench --site test_site restore ${GITHUB_WORKSPACE}/20240822_151612-patch_test_localhost-database.sql.gz
echo "Updating to latest version"
git -C "apps/frappe" checkout -q -f "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}"
git -C "apps/erpnext" checkout -q -f "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}"
git -C "apps/india_compliance" checkout -q -f "$GITHUB_SHA"
pgrep honcho | xargs kill
rm -rf ~/frappe-bench/env
bench -v setup env
bench pip install -e ./apps/erpnext
bench pip install -e ./apps/india_compliance
bench start &>> ~/frappe-bench/bench_start.log &
# - name: Run Patch Tests
# run: |
# cd ~/frappe-bench/
# bench remove-app india_compliance --force
# jq 'del(.install_apps)' ~/frappe-bench/sites/test_site/site_config.json > tmp.json
# mv tmp.json ~/frappe-bench/sites/test_site/site_config.json

# bench --site test_site restore ${GITHUB_WORKSPACE}/20240822_151612-patch_test_localhost-database.sql.gz

# echo "Updating to latest version"
# git -C "apps/frappe" checkout -q -f "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}"
# git -C "apps/erpnext" checkout -q -f "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}"
# git -C "apps/india_compliance" checkout -q -f "$GITHUB_SHA"

# pgrep honcho | xargs kill
# rm -rf ~/frappe-bench/env
# bench -v setup env
# bench pip install -e ./apps/erpnext
# bench pip install -e ./apps/india_compliance
# bench start &>> ~/frappe-bench/bench_start.log &

0 comments on commit 319f7e0

Please sign in to comment.