forked from lichess-org/berserk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -e | ||
|
||
python3 -m pip install -e . --no-cache-dir | ||
|
||
attempts=0 | ||
while [ $attempts -lt 30 ]; do | ||
if curl -s http://lila:9663 >/dev/null; then | ||
break | ||
fi | ||
echo "⌛ Waiting for lila to start..." | ||
sleep 1 | ||
attempts=$((attempts + 1)) | ||
done | ||
|
||
python3 integration/sample.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash -e | ||
|
||
IMAGE=ghcr.io/lichess-org/lila-docker:ci2 | ||
|
||
cleanup_containers() { | ||
docker rm --force lila > /dev/null 2>&1 || true | ||
docker rm --force app > /dev/null 2>&1 || true | ||
docker network rm lila-network > /dev/null 2>&1 || true | ||
} | ||
|
||
echo "Running integration tests" | ||
|
||
cleanup_containers | ||
docker network create lila-network || true | ||
docker run -d --name lila --network lila-network $IMAGE | ||
|
||
docker run --name app --network lila-network -v $(pwd):/app -w /app $IMAGE sh -c "./integration/run.sh" | ||
|
||
echo "✅ Integration tests passed" | ||
|
||
cleanup_containers | ||
echo "✅ Done" |