More Related Content Similar to Continuous Delivery Pipeline for Symfony Projects with Jenkins and Chef Similar to Continuous Delivery Pipeline for Symfony Projects with Jenkins and Chef (20) Continuous Delivery Pipeline for Symfony Projects with Jenkins and Chef6. „Continuous delivery (CD) is a set of
processes, tools and techniques for the
rapid, reliable and continuous
development and delivery of software.”
What is continous
delivery?
7. Our highest priority is to satisfy the
customer!
through early and continuous delivery!
of valuable software.
Agile manifesto #1
24. Set up your build
process
<target name="configure">
<echo>Downloading dependencies using composer.</echo>
<exec executable="/bin/bash" failonerror="true" dir=„.">
<arg value="/usr/bin/composer install —no-interaction —prefer-dist" />!
</exec>
!
<echo>Dumping prod assets.</echo>
<exec executable="/bin/bash" failonerror="true">
<arg value="-c" />
<arg value="${basedir}/bin/console assetic:dump --env=prod --no-debug" />!
</exec>
!
<echo>Ensuring empty cache and logs directories.</echo>
<delete includeemptydirs="true" verbose="false" failonerror="true" dir="${basedir}/var/cache" />!
<delete includeemptydirs="true" verbose="false" failonerror="true" dir="${basedir}/var/logs" />!
<mkdir dir="${basedir}/var/cache" />!
<mkdir dir="${basedir}/var/logs" />
</target>
26. Run your unit tests
<target name=„phpspec" description="Run tests with PHPSpec">
<exec executable="/bin/bash" failonerror="true">
<arg value="-c" />
<arg value="${basedir}/bin/phpspec run" />
</exec>
</target>
<target name="build-unit">
<property file="build.ci.properties" />
<antcall target="phpspec" /> !
<antcall target="jasmine" />
<echo>Unit test build pass.</echo>
</target>
28. Run your acceptance
tests
<target name=„behat" description=„Run acceptance tests with Behat">
<exec executable="/bin/bash" failonerror="true">
<arg value="-c" />
<arg value="${basedir}/bin/behat —format progress" />!
</exec>
</target>
<target name="build-acceptance">
<property file="build.ci.properties" />
<antcall target="behat" /> !
<echo>Acceptance test build pass.</echo>
</target>
36. Make jenkins talk to
your chef server
knife ec2 server create!
knife bootstrap!
knife ssh!
…