This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test-deploy-ci > default: | |
Please enter a value: Bob # I typed "Bob" in | |
[echo] You entered: Bob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="test-deploy-ci" default="default"> | |
<target name="default"> | |
<input message="Please enter a value:" propertyName="value.entered"/> | |
<echo msg="You entered: ${value.entered}"/> | |
</target> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set pear state to accept alpha packages | |
pear config-set preferred_state alpha | |
sudo pear install VersionControl_Git | |
# reset pear state | |
pear config-set preferred_state stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you run this from the root of the project | |
behat tests/behat/ | |
# Expected output: | |
# Feature: Test the Sample application | |
# | |
# Scenario Outline: Test the greeting # tests/behat/features/sample.feature:2 | |
# Given that an instance exists # FeatureContext::thatAnInstanceExists() | |
# And its name is "<name>" # FeatureContext::itsNameIs() | |
# And make it greet me # FeatureContext::makeItGreetMe() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure you run this from the root of the project | |
phpunit tests/phpunit | |
# Expected output: | |
# PHPUnit 3.6.10 by Sebastian Bergmann. | |
# | |
# .F | |
# | |
# Time: 0 seconds, Memory: 3.25Mb | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phpunit --version && behat -V && phing -v | |
# PHPUnit 3.6.10 by Sebastian Bergmann. | |
# | |
# Behat version 2.3.5 | |
# Phing 2.4.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pear channel-discover pear.phing.info | |
sudo pear install -f -a phing/phing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pear channel-discover pear.behat.org | |
sudo pear install -f -a behat/behat behat/gherkin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pear channel-discover pear.phpunit.de | |
sudo pear install -f -a pear.phpunit.de/PHPUnit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="ci-phing-behat-test" default="dev"> | |
<!-- load variable definitions --> | |
<property file="build.properties"/> | |
<property name="behat.basedir" value="${project.basedir}/../test"/> | |
<!-- define custom tasks and types --> | |
<typedef name="args" classname="phing.behat.types.BehatArguments"/> |