Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #32 from herdphp/update-before-run
Browse files Browse the repository at this point in the history
Ensure we are always running the latest docker images
  • Loading branch information
brunoric committed Aug 8, 2017
2 parents 64a3825 + 56ee895 commit a0f27c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/phpqa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function parseArgs()

function executeRunSuite()
{
docker pull herdphp/phpqa:${_RUN_VERSION};
docker run --rm -i -t herdphp/phpqa:${_RUN_VERSION} make test;
exit 0;
}
Expand All @@ -93,6 +94,7 @@ function singleTest()
{
mkdir -p ${_RUN_FILE_DIR}/${_RUN_VERSION}/;
cp -r ${_RUN_FILE_PATH} ${_RUN_FILE_DIR}/${_RUN_VERSION}/;
docker pull herdphp/phpqa:${_RUN_VERSION};
docker run --rm -i -t \
-v ${_RUN_FILE_DIR}/${_RUN_VERSION}/:/usr/src/phpt/ \
herdphp/phpqa:${_RUN_VERSION} \
Expand Down Expand Up @@ -153,6 +155,7 @@ function executeGenerate()
{
parseGenerateArgs ${_COMMAND_ARGS};
fixGenerateDir;
docker pull herdphp/phpqa:${_RUN_VERSION};
docker run --rm -i -t -w /usr/src/phpt -v ${_GENERATE_DIR}:/usr/src/phpt herdphp/phpqa:${_GENERATE_VERSION} \
php /usr/src/php/scripts/dev/generate-phpt.phar ${_GENERATE_ARGS} | sed "s/php generate-phpt.php /phpqa/";
}
Expand Down

0 comments on commit a0f27c0

Please sign in to comment.