M365 global developer bootcamp 2019 Intro to SPFx Version
CodeShip
1. CodeShip PHP CI Deployment
By Bryan Reinbolt
Introduction:
This is a brief tutorial on how to setup your test environment for PHP on CodeShip.com. Please
note that you will need to copy of composer.json file on your github in order for this to work. It is
also recommended to disable xdebug in your test environment. Also you should remove the
composer install from your test environment.
Once you have successfully setup your test environment and start new commits to GitHub.
CodeShip will clone your branch and run your test collateral against your code.
GitHub:
https://github.com/qwintroys/ITC134-F16_LastProject
Composer.Json:
https://github.com/qwintroys/ITC134-F16_LastProject/blob/master/composer.json
Note: You will need to have a copy of the composer.json file in your github
CodeShip Configuration for PHP:
1. Remove composer install --prefer-source --no-interaction
2. Disable xdebug to improve on performance
rm -f /home/rof/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
3. Go to the Test Commands and add your test cases, if you want you can also add additional
virtual machines by selecting on the +Add Pipeline.
2. 4. Activate ParallelCI Trial if you would like run multiple VM’s such as a Windows or Mac
Environment.
5. Additional configuration can be done by selecting Project Setting in the upper right hand
corner. You can also access the Project Settings in the project drop down and selecting on the
project gear icon.
3. 6. In project setting you can changes to your test environment (ie Which we just setup), in the
deployment this where you will need to add API Keys from Third-party services such as AWS
and etc….
7. In Environment this is where you can enviroment setting for the linux VM
8. Notification setting are extremely helpful to track of your test runs I recommend you set up
the following notifications
4. Note: if you set up Slack notification from Slack you do not have to provide a webhook
9. General section you can obtain your SSH key and your Project UUID key. In addition this
where you can manage or transfer your repository to other projects.