Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoub3bidi committed Feb 4, 2024
1 parent 575d1f9 commit 1c5ad1c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions ci/integration-test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#!/usr/bin/env bash

# Load environment variables from .env file
if [ -f .env ]; then
export $(cat .env | xargs)
# Use .env.dist if .env doesn't exist
ENV_FILE=".env"
if [ ! -f "$ENV_FILE" ]; then
ENV_FILE=".env.dist"
fi

# Load environment variables from the chosen file
if [ -f "$ENV_FILE" ]; then
export $(cat "$ENV_FILE" | xargs)
else
echo "Error: Environment file not found: $ENV_FILE"
exit 1
fi

docker-compose up --build --abort-on-container-exit mercury_integration_tests
15 changes: 12 additions & 3 deletions ci/unit-test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
#!/usr/bin/env bash

# Load environment variables from .env file
if [ -f .env ]; then
export $(cat .env | xargs)
# Use .env.dist if .env doesn't exist
ENV_FILE=".env"
if [ ! -f "$ENV_FILE" ]; then
ENV_FILE=".env.dist"
fi

# Load environment variables from the chosen file
if [ -f "$ENV_FILE" ]; then
export $(cat "$ENV_FILE" | xargs)
else
echo "Error: Environment file not found: $ENV_FILE"
exit 1
fi

docker-compose up --build --abort-on-container-exit mercury_unit_tests

0 comments on commit 1c5ad1c

Please sign in to comment.