blob: edc016152d18c3d217af66191815fd6bd98ef140 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env bash
ARGS=(--allow-net --allow-env --allow-read --allow-write --unstable)
if grep -q "DEBUG=1" .env; then
deno lint --unstable src/ &&
deno test "${ARGS[@]}" test/ &&
echo "Tests succeeded!" &&
deno run "${ARGS[@]}" src/main.ts
elif grep -q "DEBUG=2" .env; then
deno lint --unstable src/ &&
deno test "${ARGS[@]}" test/ &&
echo "Tests succeeded!"
else
deno run "${ARGS[@]}" src/main.ts
fi
|