Skip to content

Commit

Permalink
cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Mar 1, 2024
1 parent 4d3d8aa commit 2993a40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,9 @@ services:
- redis
- postgres
command:
- bash
- '-c'
- |
echo "Downloading fixtures"
wget -q https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/ca0f13b8-d6ed-11ee-870b-8e93953183bb/fixture.json
echo "Running Django migrations..."
poetry run ./manage.py migrate
echo "Running pytest..."
poetry run pytest -v
- poetry
- run
- ./scripts/run-tests.sh

volumes:
postgres-data:
8 changes: 8 additions & 0 deletions scripts/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
echo "Downloading fixtures"
wget -q https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/ca0f13b8-d6ed-11ee-870b-8e93953183bb/fixture.json

echo "Running Django migrations..."
./manage.py migrate

echo "Running pytest..."
ulimit -n unlimited && pytest

0 comments on commit 2993a40

Please sign in to comment.