Skip to content

Commit

Permalink
Fix testing script for real.
Browse files Browse the repository at this point in the history
Build image with proper Python version and and install proper requirements before running tests!
  • Loading branch information
philippe-docourt committed Sep 7, 2020
2 parents 2619dc2 + 2f9c926 commit 28401ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ fi
DOCKER_COMPOSE_COMMAND="docker-compose -f docker-compose.yml"
for django_version in ${django_versions[@]}
do
${DOCKER_COMPOSE_COMMAND} stop
build_cmd=${DOCKER_COMPOSE_COMMAND} build --build-arg PYTHON_VERSION=${python_version}
${DOCKER_COMPOSE_COMMAND} down
build_cmd="${DOCKER_COMPOSE_COMMAND} build --build-arg PYTHON_VERSION=${python_version}"
echo --- Build test container for Python ${python_version}: "${build_cmd}"
${build_cmd}

Expand All @@ -45,4 +45,4 @@ fi
done

echo "--- Tests finished at $(date)"
) | tee "${log_file_path}"
) | tee "${log_file_path}"

0 comments on commit 28401ed

Please sign in to comment.