2020-09-19 17:09:40 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-08-12 12:36:28 -07:00
|
|
|
pipenv run pytest -m "not integration and not async_integration" --cov=./ --cov-report=xml --cov-append
|
|
|
|
|
2020-09-19 17:09:40 -07:00
|
|
|
bash scripts/bootstrap_dex.sh
|
|
|
|
|
|
|
|
wait_time=20
|
|
|
|
echo "Waiting $wait_time seconds to make sure the market has started"
|
|
|
|
sleep $wait_time
|
|
|
|
|
|
|
|
|
2021-08-12 12:36:28 -07:00
|
|
|
pipenv run pytest -m integration --cov=./ --cov-report=xml --cov-append
|
|
|
|
|
|
|
|
bash scripts/clean_up.sh
|
|
|
|
|
|
|
|
bash scripts/bootstrap_dex.sh
|
|
|
|
|
|
|
|
wait_time=20
|
|
|
|
echo "Waiting $wait_time seconds to make sure the market has started"
|
|
|
|
sleep $wait_time
|
2020-09-19 17:09:40 -07:00
|
|
|
|
|
|
|
exit_code=1
|
2021-08-12 12:36:28 -07:00
|
|
|
if (pipenv run pytest -m async_integration --cov=./ --cov-report=xml --cov-append); then
|
2020-09-19 17:09:40 -07:00
|
|
|
echo "The script ran ok"
|
|
|
|
exit_code=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
bash scripts/clean_up.sh
|
|
|
|
|
|
|
|
exit $exit_code
|