mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
2ca30a0b2d
* ci(examples): refactor process management * ci(examples): build hackernews_js_fetch with deno * ci(workflows): detect hackernews_js_fetch change * chore(web-report): report deno usage * chore(web-report): ignore gtk example * ci(todo_app_sqlite): simulate change * ci(workflows): install deno * ci(todo_app_sqlite): remove simulated change
38 lines
743 B
TOML
38 lines
743 B
TOML
[tasks.start-webdriver]
|
|
script = '''
|
|
BOLD="\e[1m"
|
|
GREEN="\e[0;32m"
|
|
RED="\e[0;31m"
|
|
RESET="\e[0m"
|
|
|
|
if command -v chromedriver; then
|
|
if pidof -q chromedriver; then
|
|
echo " chromedriver is already started"
|
|
else
|
|
echo "Starting chomedriver"
|
|
chromedriver --port=4444 &
|
|
fi
|
|
else
|
|
echo "${RED}${BOLD}ERROR${RESET} - chromedriver not found"
|
|
exit 1
|
|
fi
|
|
'''
|
|
|
|
[tasks.stop-webdriver]
|
|
script = '''
|
|
if pidof -q chromedriver; then
|
|
echo " Stopping chromedriver"
|
|
pkill -ef "chromedriver"
|
|
else
|
|
echo " chromedriver is already stopped"
|
|
fi
|
|
'''
|
|
|
|
[tasks.webdriver-status]
|
|
script = '''
|
|
if pidof -q chromedriver; then
|
|
echo chromedriver is up
|
|
else
|
|
echo chromedriver is not running
|
|
fi
|
|
'''
|