add more commands to the release test

This commit is contained in:
c9s 2022-06-08 15:07:14 +08:00
parent c1c2b03c90
commit 9ffed1d5b9
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -1,4 +1,12 @@
#!/bin/bash #!/bin/bash
set -e set -e
echo "testing sync..."
dotenv -f .env.local.mysql -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml dotenv -f .env.local.mysql -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml
dotenv -f .env.local.sqlite -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml dotenv -f .env.local.sqlite -- go run ./cmd/bbgo sync --session binance --config config/sync.yaml
echo "backtest sync..."
echo "backtest mysql sync..."
dotenv -f .env.local.mysql -- go run ./cmd/bbgo backtest --config config/dca.yaml --sync --sync-only --verify
echo "backtest sqlite sync..."
dotenv -f .env.local.sqlite -- go run ./cmd/bbgo backtest --config config/dca.yaml --sync --sync-only --verify