-
-
Notifications
You must be signed in to change notification settings - Fork 6
chore: Move composer.json test scripts to build.sh test #578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dd97a69 to
7ed781d
Compare
7ed781d to
187c116
Compare
User Test ResultsTest specification and instructions User tests are not required |
13cdf04 to
6d2e338
Compare
* Add PHP unit test step * Configure Docker image to install phpunit when BUILDER_CONFIGURATION=debug
6d2e338 to
6206dc8
Compare
| builder_run_action clean clean_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME | ||
| builder_run_action stop stop_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME | ||
| builder_run_action build build_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME | ||
| builder_run_action build build_docker_container $KEYMAN_IMAGE_NAME $KEYMAN_CONTAINER_NAME $BUILDER_CONFIGURATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This passes in the BUILDER_CONFIGURATION parameter for keymanapp/shared-sites#84
| { | ||
| $this->assertTrue(true); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied from help.keyman.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should .htaccess block the /tests folder? Otherwise, I get this error
Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/tests/InfrastructureTest.php:7 Stack trace: #0 {main} thrown in /var/www/html/tests/InfrastructureTest.php on line 7There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added redirect in c3f1c8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, unsure, probably fine?
| run: | | ||
| echo "TIER_TEST" > tier.txt | ||
| ./build.sh build start | ||
| ./build.sh configure build start --debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--debug needed so Docker will build with dev dependencies
Fixes: #493
Moving scripts for tests from composer.json into ci.yml and
build.sh testTesting involves:
This involves passing
build.sh build --debugparameter so thecomposer installstep installs dev dependencies.Test-bot: skip