TeamCity / Github / Azure Websites / PHP Site (Laravel)

Hi,

I just setup TeamCity and have been struggling for about 2 days with it.

Windows 2012 R2 VM

So far, I can:

  • download my gihub project
  • compress it to a zip file
  • composer install step runs, but no files are added to the existing zip file--- Im not sure what to do here....


What Im trying to do is:

  • download from github
  • run composer
  • deply to azure websites
    • My plan so far is to compress the github project and composer files into one zip
    • use powershell meta runner somehow to deply


Problem Overview
- When I run composer as a build step nothing is added to my artifact zip file.
- How do I deploy to Azure Websites?



Ive reviewed following sources:

http://blog.jetbrains.com/webide/2013/01/continuous-integration-for-php-using-teamcity/ ---- doesnt discuss the deployment aspect im looking for

https://confluence.jetbrains.com/display/TCD8/Continuous+Delivery+to+Windows+Azure+Web+Sites+%28or+IIS%29 ------ i have created the .pubxml file mentioned but at the end of step 1, <DesktopBuildPackageLocation> is mentioned and I dont have that in my xml file?

http://blog.jetbrains.com/teamcity/2013/07/first-class-php-continuous-integration-using-teamcity/ ---- using the composer meta-runner from here

Thank you in advance!

Don

4 comments
Comment actions Permalink

Hi Don,

I think that you should run composer firstly and then publish all artifacts as one zip file. Artifacts are published when the build is finished.

0
Comment actions Permalink

Hi Alina,

Thanks for your response. Composer is actually the only build step I have right now. Besides that I just have my VCS section completed. Here is a screen shot and the log showing the activity.

The resulting zip file only contains my vcs files and nothing from composer.


ss1.png
ss2.png

0
Comment actions Permalink

Don,

Please check that needed files are actually downloaded during "Run Composer" build step. For this please check the content of the agent's "work/<hash>" folder mentioned in the build log.
If you want to include all files, then please specify the following artifact path: ** => build.zip

0
Comment actions Permalink

Thanks Alina.

Im 100% positive that this isnt the best way to do this, but Ive been struggling with this for the entire week have wasted a lot of time.... I understand it's a free product but I would pay for support as of right now the documentation for a php app deployment to azure isn't very good.

I ended up committing my composer directory, run phpunit, and use phing to zip and ftp the files over. It works for now but not the best solution.

Thanks for your help,

Don

0

Please sign in to leave a comment.