SlideShare a Scribd company logo
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.
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.
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
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.

More Related Content

PDF
Hot Code Replacement - Alexei Sholik
PDF
How to Install and Configure Jenkins on Centos 7
PPTX
Microsoft azure pipeline + Docker + Amazon s3 + Jekyll + github
PPTX
PowerShell-2
PPTX
Branching Strategies For Git and Subversion
DOCX
PPTX
TDD on OSGi, in practice.
PDF
Aikau testing tech talk live 83 20150204
Hot Code Replacement - Alexei Sholik
How to Install and Configure Jenkins on Centos 7
Microsoft azure pipeline + Docker + Amazon s3 + Jekyll + github
PowerShell-2
Branching Strategies For Git and Subversion
TDD on OSGi, in practice.
Aikau testing tech talk live 83 20150204

What's hot (19)

PPTX
Maven 3 New Features
PDF
Reshape2 Installation Instructions
PDF
Environment Setup for Programming Languages
PDF
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
PPTX
Ng2 cli
ODP
Js Test Driver, JsHamcrest, JsMockito
PPTX
Any point on mac
PDF
Kirill Rozin - Practical Wars for Automatization
PPTX
Debugging mule
PPTX
Django simplified : by weever mbakaya
PPTX
Building the Test Automation Framework - Jenkins for Testers
PDF
Selenium With Spices
PPTX
Installing and updating software packages [autosaved]
DOCX
Instruction Sheet to Setup CI
PDF
First steps with selenium rc
PDF
Setup Build & Deploy with Jenkins CI
PPTX
Presentation_Protractor
PPTX
Last Month in PHP - January 2016
PDF
You can now use PVS-Studio with Visual Studio absent; just give it the prepro...
Maven 3 New Features
Reshape2 Installation Instructions
Environment Setup for Programming Languages
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
Ng2 cli
Js Test Driver, JsHamcrest, JsMockito
Any point on mac
Kirill Rozin - Practical Wars for Automatization
Debugging mule
Django simplified : by weever mbakaya
Building the Test Automation Framework - Jenkins for Testers
Selenium With Spices
Installing and updating software packages [autosaved]
Instruction Sheet to Setup CI
First steps with selenium rc
Setup Build & Deploy with Jenkins CI
Presentation_Protractor
Last Month in PHP - January 2016
You can now use PVS-Studio with Visual Studio absent; just give it the prepro...
Ad

Viewers also liked (19)

PDF
Rio Info 2015 - Salão da Inovação - Paraíba - Luiz Maurício Fraga martins
PDF
Git as NoSQL
PDF
2008-06-25 Marist System z Summer Professors Series
PPTX
Literacy practices in the classroom
PDF
EMILIO CANESSA 3-2016
PDF
2008-01-23 Red Hat Overview to CUNY Information Managers Forum
PDF
Dallas Erwin CV- 2015
PDF
Continuous Delivery for Mobile platforms (iOS and a bit of Android)
PDF
WordPressCafe - Deploying WordPress using Kontena
ODP
My app is secure... I think
PPT
Production Issues
PDF
Introduction to Ansible
PDF
ContainerDays NYC 2016: "Securing Your Docker Image Registry for Production" ...
PPTX
Patterns & Antipatterns in Docker Image Lifecycle
RTF
Registered Nurse
PDF
OCCIware, an extensible, standard-based XaaS consumer platform to manage ever...
PDF
Deploying Containers with Rancher
PPTX
Building Ext JS Using HATEOAS - Jeff Stano
PPTX
Unit 2a Budgets
Rio Info 2015 - Salão da Inovação - Paraíba - Luiz Maurício Fraga martins
Git as NoSQL
2008-06-25 Marist System z Summer Professors Series
Literacy practices in the classroom
EMILIO CANESSA 3-2016
2008-01-23 Red Hat Overview to CUNY Information Managers Forum
Dallas Erwin CV- 2015
Continuous Delivery for Mobile platforms (iOS and a bit of Android)
WordPressCafe - Deploying WordPress using Kontena
My app is secure... I think
Production Issues
Introduction to Ansible
ContainerDays NYC 2016: "Securing Your Docker Image Registry for Production" ...
Patterns & Antipatterns in Docker Image Lifecycle
Registered Nurse
OCCIware, an extensible, standard-based XaaS consumer platform to manage ever...
Deploying Containers with Rancher
Building Ext JS Using HATEOAS - Jeff Stano
Unit 2a Budgets
Ad

Similar to CodeShip (20)

PPT
Setting up the hyperledger composer in ubuntu
PPTX
Drupal Continuous Integration with Jenkins - Deploy
PDF
sfdx continuous Integration with Jenkins on aws (Part II)
DOCX
Prizm Installation Guide
ODP
Jbossworld Presentation
PDF
Lean Drupal Repositories with Composer and Drush
PDF
Amending and Testing changes lab guide
PDF
Build server
PPSX
Asp net mvc
PDF
Continuous Integration using Jenkins with Python
TXT
Install
PPTX
Aleksandr Kutsan "Managing Dependencies in C++"
DOCX
BLCN532 Lab 1Set up your development environmentV2.0.docx
PDF
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
PPTX
M365 global developer bootcamp 2019
PPTX
Azure DevOps Extensions
PDF
LIGGGHTS installation-guide
PPTX
M365 global developer bootcamp 2019 PA
PPTX
M365 global developer bootcamp 2019 Intro to SPFx Version
PPTX
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
Setting up the hyperledger composer in ubuntu
Drupal Continuous Integration with Jenkins - Deploy
sfdx continuous Integration with Jenkins on aws (Part II)
Prizm Installation Guide
Jbossworld Presentation
Lean Drupal Repositories with Composer and Drush
Amending and Testing changes lab guide
Build server
Asp net mvc
Continuous Integration using Jenkins with Python
Install
Aleksandr Kutsan "Managing Dependencies in C++"
BLCN532 Lab 1Set up your development environmentV2.0.docx
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
M365 global developer bootcamp 2019
Azure DevOps Extensions
LIGGGHTS installation-guide
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019 Intro to SPFx Version
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE

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.