mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
ci: Port CI test from Travis to Github Actions (#24846)
This commit is contained in:
committed by
GitHub
parent
b5792872e9
commit
0f60f08f3e
14
.github/helper/run_tests.sh
vendored
Normal file
14
.github/helper/run_tests.sh
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~/frappe-bench/ || exit
|
||||
|
||||
|
||||
if [ "$TYPE" == "server" ]; then
|
||||
bench --site test_site run-tests --app erpnext --coverage
|
||||
fi
|
||||
|
||||
if [ "$TYPE" == "patch" ]; then
|
||||
wget http://build.erpnext.com/20171108_190013_955977f8_database.sql.gz
|
||||
bench --site test_site --force restore ~/frappe-bench/20171108_190013_955977f8_database.sql.gz
|
||||
bench --site test_site migrate
|
||||
fi
|
||||
Reference in New Issue
Block a user