From 21e8090a92e86646dd9e475eb1baf7042817a972 Mon Sep 17 00:00:00 2001 From: Vidya Raghavan Date: Tue, 1 Jul 2014 12:17:13 +0530 Subject: [PATCH 01/56] Update shippable.yml --- shippable.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shippable.yml b/shippable.yml index 3e14b92..7d99335 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,7 +1,11 @@ language: php php: + - 5.3 - 5.4 + - 5.5 + - 5.6 + before_script: - mkdir -p shippable/codecoverage - mkdir -p shippable/testresults From 70b2f5e59d6e5abda38e75ad86b4072cf1adfba3 Mon Sep 17 00:00:00 2001 From: Patrick Ellis Date: Tue, 22 Jul 2014 11:47:24 -0700 Subject: [PATCH 02/56] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2bb6bd0..fce916d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -php-buildsample +Sample PHP =============== -Build sample for PHP +Build sample for standalone PHP build sample. + +This sample is built for Shippable, a docker based continuous integration and deployment platform. From c4733b927d75d329abe4204a7d21b3be1c8ce2e5 Mon Sep 17 00:00:00 2001 From: Dan Heidel Date: Tue, 16 Sep 2014 13:44:56 -0700 Subject: [PATCH 03/56] Update calculator_test.php --- tests/calculator_test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..dc4c980 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class @@ -17,7 +17,7 @@ public function testAdd(){ public function testSubtract(){ $calc = new Calculator(); $difference = $calc->subtract(5,2); - $this->assertEquals(3, $difference); //check if 5 - 2 is equal to 3 + $this->assertEquals(4, $difference); //check if 5 - 2 is equal to 3 } //test if the multiply() method in our calculator class @@ -26,7 +26,7 @@ public function testSubtract(){ public function testMultiply(){ $calc = new Calculator(); $product = $calc->multiply(array(1,3,5,6)); - $this->assertEquals(90, $product); //check if 1*3*5*6 is equal to 90 + $this->assertEquals(91, $product); //check if 1*3*5*6 is equal to 90 } //test if the divide() method in our calculator class @@ -35,7 +35,7 @@ public function testMultiply(){ public function testDivide(){ $calc = new Calculator(); $quotient = $calc->divide(10,2); - $this->assertEquals(5, $quotient); //check if 10/2 is equal to 5 + $this->assertEquals(6, $quotient); //check if 10/2 is equal to 5 } } ?> From a782e1660bd8799eb934184bdf5521c4e5455ef3 Mon Sep 17 00:00:00 2001 From: Dan Heidel Date: Tue, 16 Sep 2014 13:48:19 -0700 Subject: [PATCH 04/56] Update calculator_test.php --- tests/calculator_test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index dc4c980..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class @@ -17,7 +17,7 @@ public function testAdd(){ public function testSubtract(){ $calc = new Calculator(); $difference = $calc->subtract(5,2); - $this->assertEquals(4, $difference); //check if 5 - 2 is equal to 3 + $this->assertEquals(3, $difference); //check if 5 - 2 is equal to 3 } //test if the multiply() method in our calculator class @@ -26,7 +26,7 @@ public function testSubtract(){ public function testMultiply(){ $calc = new Calculator(); $product = $calc->multiply(array(1,3,5,6)); - $this->assertEquals(91, $product); //check if 1*3*5*6 is equal to 90 + $this->assertEquals(90, $product); //check if 1*3*5*6 is equal to 90 } //test if the divide() method in our calculator class @@ -35,7 +35,7 @@ public function testMultiply(){ public function testDivide(){ $calc = new Calculator(); $quotient = $calc->divide(10,2); - $this->assertEquals(6, $quotient); //check if 10/2 is equal to 5 + $this->assertEquals(5, $quotient); //check if 10/2 is equal to 5 } } ?> From dfe0d1b887048b5333245092348bbc874920dce5 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 13:38:26 +0530 Subject: [PATCH 05/56] Update shippable.yml --- shippable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shippable.yml b/shippable.yml index 7d99335..f4c5a52 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,9 +1,9 @@ language: php php: - - 5.3 - - 5.4 - - 5.5 + #- 5.3 + #- 5.4 + #- 5.5 - 5.6 before_script: From 97b053981b7c4e975ec63441ac6d028c21f39cdd Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:04:56 +0530 Subject: [PATCH 06/56] Create bash.sh --- bash.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bash.sh diff --git a/bash.sh b/bash.sh new file mode 100644 index 0000000..fef0ac9 --- /dev/null +++ b/bash.sh @@ -0,0 +1,5 @@ +version=`git --version | awk '{print $3}'` +version=( ${version//./ } ) +if [ "${version[0]}" -ge "1" ] && [ "${version[1]}" -gt "8" ]; then + echo "Compatible" +fi; From 82a4c890553d85befa30f2f25b971db5fdbd48d3 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:05:54 +0530 Subject: [PATCH 07/56] Update shippable.yml --- shippable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index f4c5a52..f775de9 100644 --- a/shippable.yml +++ b/shippable.yml @@ -11,7 +11,9 @@ before_script: - mkdir -p shippable/testresults script: - - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php + - bash bash.sh + - ./bash.sh + - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php notifications: email: false From 171403b7e2093bc0b907c7a1cdb0707b656ac8a9 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:07:21 +0530 Subject: [PATCH 08/56] Update shippable.yml --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index f775de9..0c05810 100644 --- a/shippable.yml +++ b/shippable.yml @@ -11,7 +11,6 @@ before_script: - mkdir -p shippable/testresults script: - - bash bash.sh - ./bash.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php From 24af9a2159c04d746748898204078dce85df4f7c Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:11:00 +0530 Subject: [PATCH 09/56] Rename bash.sh to bas.sh --- bash.sh => bas.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename bash.sh => bas.sh (100%) diff --git a/bash.sh b/bas.sh similarity index 100% rename from bash.sh rename to bas.sh From 92a156728cc6aca7c34490d755a2244049f24de8 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:11:24 +0530 Subject: [PATCH 10/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 0c05810..3a8c855 100644 --- a/shippable.yml +++ b/shippable.yml @@ -11,7 +11,7 @@ before_script: - mkdir -p shippable/testresults script: - - ./bash.sh + - ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php notifications: From 962f12cb926d8123f3330e453922f451996b1a55 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:17:32 +0530 Subject: [PATCH 11/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 3a8c855..d766e84 100644 --- a/shippable.yml +++ b/shippable.yml @@ -11,7 +11,7 @@ before_script: - mkdir -p shippable/testresults script: - - ./bas.sh + - sudo ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php notifications: From de4e31cc0568dde990902e8cb8981a67eed85f19 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:21:27 +0530 Subject: [PATCH 12/56] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index d766e84..4155111 100644 --- a/shippable.yml +++ b/shippable.yml @@ -11,6 +11,7 @@ before_script: - mkdir -p shippable/testresults script: + - chmod +x bas.sh - sudo ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php From 821886225873715af58abc89b9b9142126621d3c Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:22:25 +0530 Subject: [PATCH 13/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 4155111..92bc9ae 100644 --- a/shippable.yml +++ b/shippable.yml @@ -12,7 +12,7 @@ before_script: script: - chmod +x bas.sh - - sudo ./bas.sh + - ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php notifications: From a9bd1740964fc731dabda8110ce866b951d0429d Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:27:52 +0530 Subject: [PATCH 14/56] Update bas.sh --- bas.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bas.sh b/bas.sh index fef0ac9..e0958be 100644 --- a/bas.sh +++ b/bas.sh @@ -1,5 +1,8 @@ +git --version version=`git --version | awk '{print $3}'` +echo $version version=( ${version//./ } ) +echo $version if [ "${version[0]}" -ge "1" ] && [ "${version[1]}" -gt "8" ]; then echo "Compatible" fi; From 5e7ecf4a9bbcf41b85406df85fc2502c53cbf6be Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:34:17 +0530 Subject: [PATCH 15/56] Update bas.sh --- bas.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bas.sh b/bas.sh index e0958be..927f33b 100644 --- a/bas.sh +++ b/bas.sh @@ -2,7 +2,8 @@ git --version version=`git --version | awk '{print $3}'` echo $version version=( ${version//./ } ) -echo $version -if [ "${version[0]}" -ge "1" ] && [ "${version[1]}" -gt "8" ]; then +echo ${version[0]} +echo ${version[1]} +if [ "${version[0]}" -gt "1" ] || ( [ "${version[0]}" -eq "1" ] && [ "${version[1]}" -gt "8" ] ); then echo "Compatible" fi; From 75aebf9dbd6aee5766ffee6fea859c35b538ee28 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:35:19 +0530 Subject: [PATCH 16/56] Update bas.sh --- bas.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bas.sh b/bas.sh index 927f33b..7348aa3 100644 --- a/bas.sh +++ b/bas.sh @@ -6,4 +6,6 @@ echo ${version[0]} echo ${version[1]} if [ "${version[0]}" -gt "1" ] || ( [ "${version[0]}" -eq "1" ] && [ "${version[1]}" -gt "8" ] ); then echo "Compatible" +else + echo "Not compatible" fi; From 03e052aa8d19a5da5aa579f0f55a88b590e9dff3 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 14:36:27 +0530 Subject: [PATCH 17/56] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index 92bc9ae..2b41499 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,5 +1,6 @@ language: php +build_image: shippableimages/ubuntu1204_php:0.0.1 php: #- 5.3 #- 5.4 From bb1b4324d3e888711669c7ef17dfd2d4230c18cf Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 16 Feb 2015 15:48:32 +0530 Subject: [PATCH 18/56] Update shippable.yml --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 2b41499..92bc9ae 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,6 +1,5 @@ language: php -build_image: shippableimages/ubuntu1204_php:0.0.1 php: #- 5.3 #- 5.4 From a151d6792f77c6b208d231a8b8c1c0e4487005b7 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 2 Mar 2015 22:17:33 +0530 Subject: [PATCH 19/56] Update shippable.yml --- shippable.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 92bc9ae..119b24a 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,4 +1,5 @@ -language: php +language: + - php php: #- 5.3 From e3fa69a9c3130466cd8669abdd27964a8346a763 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 18 Mar 2015 18:05:45 +0530 Subject: [PATCH 20/56] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fce916d..5629fd8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ Sample PHP -=============== +===============+ Build sample for standalone PHP build sample. From c2e1d622d0b7b2f95bd39dd7196daa2f1c5ea8e6 Mon Sep 17 00:00:00 2001 From: testactvidya2 Date: Thu, 15 Oct 2015 18:39:38 +0530 Subject: [PATCH 21/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..45ead87 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(114, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 04281b5b7913add4bb2dc87e8e44c1ac85c39ab7 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Thu, 15 Oct 2015 18:43:41 +0530 Subject: [PATCH 22/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 45ead87..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(114, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 434139b2bc32ba56c0d6b7598095eeff5a9ac4a3 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 16 Oct 2015 12:01:29 +0530 Subject: [PATCH 23/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..73cbbf1 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 7381d3cc6d398e158de98c1d376b13b98e2f6a39 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 16 Oct 2015 12:07:19 +0530 Subject: [PATCH 24/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 73cbbf1..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 9024545cb8a555fcd7be4e6a2da97b89c4bd528c Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 16 Oct 2015 13:34:46 +0530 Subject: [PATCH 25/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..73cbbf1 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From e286dd2a539b313a0c4f2acda410707f6998c5a5 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 16 Oct 2015 14:21:07 +0530 Subject: [PATCH 26/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 73cbbf1..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From f65f9b01eed6386753e6646c7eb1274c727b7a2f Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 27 Oct 2015 13:57:01 +0530 Subject: [PATCH 27/56] Update shippable.yml --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 119b24a..ef11dfb 100644 --- a/shippable.yml +++ b/shippable.yml @@ -18,5 +18,4 @@ script: notifications: email: false - From 7c0a76d9fff6c8cad3feae47374f3eea6dfdf24e Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 27 Oct 2015 15:03:23 +0530 Subject: [PATCH 28/56] Update shippable.yml --- shippable.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index ef11dfb..cc09b56 100644 --- a/shippable.yml +++ b/shippable.yml @@ -16,6 +16,4 @@ script: - ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php -notifications: - email: false From 4a0f63ec540399bac3d5d11fd2ec115d9e7977ca Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 27 Oct 2015 15:49:59 +0530 Subject: [PATCH 29/56] Update shippable.yml --- shippable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shippable.yml b/shippable.yml index cc09b56..7f5f0f3 100644 --- a/shippable.yml +++ b/shippable.yml @@ -2,9 +2,9 @@ language: - php php: - #- 5.3 - #- 5.4 - #- 5.5 + - 5.3 + - 5.4 + - 5.5 - 5.6 before_script: From dae99a4cba7ace314e5bee6500b9f68f0e4b10f8 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 28 Oct 2015 12:35:49 +0530 Subject: [PATCH 30/56] make test fail --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..a913a80 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -26,7 +26,7 @@ public function testSubtract(){ public function testMultiply(){ $calc = new Calculator(); $product = $calc->multiply(array(1,3,5,6)); - $this->assertEquals(90, $product); //check if 1*3*5*6 is equal to 90 + $this->assertEquals(9, $product); //check if 1*3*5*6 is equal to 90 } //test if the divide() method in our calculator class From c9805b98f5763880c04905bf9540b47bdb961599 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 28 Oct 2015 13:08:37 +0530 Subject: [PATCH 31/56] [skip ci] --- shippable.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 7f5f0f3..7c44557 100644 --- a/shippable.yml +++ b/shippable.yml @@ -16,4 +16,3 @@ script: - ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php - From 88ae3cdfb90ba727c6d1490713afd95256e7ed4b Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 28 Oct 2015 15:39:00 +0530 Subject: [PATCH 32/56] fix test --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index a913a80..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -26,7 +26,7 @@ public function testSubtract(){ public function testMultiply(){ $calc = new Calculator(); $product = $calc->multiply(array(1,3,5,6)); - $this->assertEquals(9, $product); //check if 1*3*5*6 is equal to 90 + $this->assertEquals(90, $product); //check if 1*3*5*6 is equal to 90 } //test if the divide() method in our calculator class From 5e5501d2f114857d0d1bca00626133cf6e6818cc Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 1 Dec 2015 15:16:21 +0530 Subject: [PATCH 33/56] Update shippable.yml --- shippable.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shippable.yml b/shippable.yml index 7c44557..71966b9 100644 --- a/shippable.yml +++ b/shippable.yml @@ -16,3 +16,14 @@ script: - ./bas.sh - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php + +notifications: + email: + recipients: + - "vidya@shippable.com" + on_success: always + on_failure: always + irc: + pull_requests: true + channels: + - "chat.freenode.net#testchannel" From 5fed8afabd5e039cb02cec07d4cd7207ec219d27 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 1 Dec 2015 15:43:23 +0530 Subject: [PATCH 34/56] Update shippable.yml --- shippable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shippable.yml b/shippable.yml index 71966b9..ba8e4a7 100644 --- a/shippable.yml +++ b/shippable.yml @@ -3,9 +3,9 @@ language: php: - 5.3 - - 5.4 - - 5.5 - - 5.6 + #- 5.4 + #- 5.5 + #- 5.6 before_script: - mkdir -p shippable/codecoverage From fa7a3fd36a096a0621c13bf61c09dac9742e320b Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 2 Dec 2015 10:25:50 +0530 Subject: [PATCH 35/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index ba8e4a7..15a8319 100644 --- a/shippable.yml +++ b/shippable.yml @@ -20,7 +20,7 @@ script: notifications: email: recipients: - - "vidya@shippable.com" + - "chandrakanth@shippable.com" on_success: always on_failure: always irc: From 9cb7708b12cd9180743829e5b15e1614898b2428 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 2 Dec 2015 14:23:25 +0530 Subject: [PATCH 36/56] Update shippable.yml --- shippable.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/shippable.yml b/shippable.yml index 15a8319..42c448e 100644 --- a/shippable.yml +++ b/shippable.yml @@ -18,11 +18,6 @@ script: notifications: - email: - recipients: - - "chandrakanth@shippable.com" - on_success: always - on_failure: always irc: pull_requests: true channels: From 96c0eacbb1187abea02112615d5ffe9e3fec08bd Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Wed, 2 Dec 2015 21:55:42 +0530 Subject: [PATCH 37/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 42c448e..6604c6f 100644 --- a/shippable.yml +++ b/shippable.yml @@ -21,4 +21,4 @@ notifications: irc: pull_requests: true channels: - - "chat.freenode.net#testchannel" + - "chat.freenode.net#chandratesting" From 62d1ea7c7aeab764f76d0171b7e012e49cbee78f Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Thu, 3 Dec 2015 10:37:25 +0530 Subject: [PATCH 38/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 6604c6f..2001646 100644 --- a/shippable.yml +++ b/shippable.yml @@ -21,4 +21,4 @@ notifications: irc: pull_requests: true channels: - - "chat.freenode.net#chandratesting" + - "chat.freenode.net#chandratest" From 8ff3560fbce022e27851fbf8a42d53c558640f9a Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 13:25:44 +0530 Subject: [PATCH 39/56] Update shippable.yml --- shippable.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shippable.yml b/shippable.yml index 2001646..50879ad 100644 --- a/shippable.yml +++ b/shippable.yml @@ -18,6 +18,11 @@ script: notifications: + email: + recipients: + - chandrakanth@shippable.com + on_success: always + on_failure: always irc: pull_requests: true channels: From 88e52f69c83bac0c840d6cbd5aa1989c56ec2264 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 15:45:44 +0530 Subject: [PATCH 40/56] Update shippable.yml --- shippable.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shippable.yml b/shippable.yml index 50879ad..ff8bce9 100644 --- a/shippable.yml +++ b/shippable.yml @@ -23,6 +23,11 @@ notifications: - chandrakanth@shippable.com on_success: always on_failure: always + slack: + recipients: + - slacktest + on_success: always + on_failure: always irc: pull_requests: true channels: From 69f9a29bbe7262dae77ddf5f22974b4353ce31ca Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 15:46:34 +0530 Subject: [PATCH 41/56] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index ff8bce9..bf2689b 100644 --- a/shippable.yml +++ b/shippable.yml @@ -24,6 +24,7 @@ notifications: on_success: always on_failure: always slack: + account_integration: 566166f46cd02a9409820b90 recipients: - slacktest on_success: always From aae73ea6d554bb2314defb70c212534d7a749a95 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 15:48:19 +0530 Subject: [PATCH 42/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index bf2689b..371daaa 100644 --- a/shippable.yml +++ b/shippable.yml @@ -24,7 +24,7 @@ notifications: on_success: always on_failure: always slack: - account_integration: 566166f46cd02a9409820b90 + account_integration: 566166f46cd02a9409820b90 recipients: - slacktest on_success: always From 418e11df88bb7662dc7a608ab97743253cc06f6b Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 16:16:16 +0530 Subject: [PATCH 43/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 371daaa..93c2f47 100644 --- a/shippable.yml +++ b/shippable.yml @@ -26,7 +26,7 @@ notifications: slack: account_integration: 566166f46cd02a9409820b90 recipients: - - slacktest + - '#slacktest' on_success: always on_failure: always irc: From a1254c7c09a2c2b16139be29b1c5e0ec6f072b7e Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 16:17:29 +0530 Subject: [PATCH 44/56] Update shippable.yml --- shippable.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index 93c2f47..f05615c 100644 --- a/shippable.yml +++ b/shippable.yml @@ -21,8 +21,10 @@ notifications: email: recipients: - chandrakanth@shippable.com - on_success: always - on_failure: always + on_success: never + on_failure: change + on_start: always + pull_request: never slack: account_integration: 566166f46cd02a9409820b90 recipients: From 4ace4b16988e6588765108067e26da6f45639762 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 16:29:10 +0530 Subject: [PATCH 45/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index f05615c..50761cd 100644 --- a/shippable.yml +++ b/shippable.yml @@ -24,7 +24,7 @@ notifications: on_success: never on_failure: change on_start: always - pull_request: never + on_pull_request: never slack: account_integration: 566166f46cd02a9409820b90 recipients: From d6473ec5301608901995d1e04e98ff85ba281d34 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Fri, 4 Dec 2015 16:29:49 +0530 Subject: [PATCH 46/56] Update shippable.yml --- shippable.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shippable.yml b/shippable.yml index 50761cd..c73403a 100644 --- a/shippable.yml +++ b/shippable.yml @@ -23,14 +23,14 @@ notifications: - chandrakanth@shippable.com on_success: never on_failure: change - on_start: always - on_pull_request: never slack: account_integration: 566166f46cd02a9409820b90 recipients: - '#slacktest' - on_success: always - on_failure: always + on_success: never + on_failure: change + on_start: always + on_pull_request: never irc: pull_requests: true channels: From d3976c10bc070c38813e00e9787685b61140d370 Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Tue, 8 Dec 2015 13:41:02 +0530 Subject: [PATCH 47/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index c73403a..87c7f81 100644 --- a/shippable.yml +++ b/shippable.yml @@ -21,7 +21,7 @@ notifications: email: recipients: - chandrakanth@shippable.com - on_success: never + on_success: change on_failure: change slack: account_integration: 566166f46cd02a9409820b90 From 574fcf4658186eb04a2df7d3f74a77c12f63a90d Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Sat, 12 Dec 2015 14:06:52 +0530 Subject: [PATCH 48/56] Update shippable.yml --- shippable.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/shippable.yml b/shippable.yml index 87c7f81..b00ab02 100644 --- a/shippable.yml +++ b/shippable.yml @@ -21,17 +21,19 @@ notifications: email: recipients: - chandrakanth@shippable.com + - vishal.chandru@gmail.com + - -- last_committer on_success: change on_failure: change slack: - account_integration: 566166f46cd02a9409820b90 + account_integration: 566a834c53054c110048bf20 recipients: - '#slacktest' on_success: never on_failure: change on_start: always on_pull_request: never - irc: - pull_requests: true - channels: - - "chat.freenode.net#chandratest" + #irc: + # pull_requests: true + #channels: + # - "chat.freenode.net#chandratest" From 97816099ee892d11278f67ce9d32cb829dd5c74a Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 14 Dec 2015 09:59:26 +0530 Subject: [PATCH 49/56] Update shippable.yml --- shippable.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index b00ab02..83df4e5 100644 --- a/shippable.yml +++ b/shippable.yml @@ -25,8 +25,10 @@ notifications: - -- last_committer on_success: change on_failure: change + on_start: always + on_pull_request: never slack: - account_integration: 566a834c53054c110048bf20 + account_integration: 566e4536b6bf9f1100524787 recipients: - '#slacktest' on_success: never From 841a244fc7ae288a0e0a1fd3a53275047d2a8f9d Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 14 Dec 2015 12:35:38 +0530 Subject: [PATCH 50/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 83df4e5..448900b 100644 --- a/shippable.yml +++ b/shippable.yml @@ -30,7 +30,7 @@ notifications: slack: account_integration: 566e4536b6bf9f1100524787 recipients: - - '#slacktest' + - '#slacktestck' on_success: never on_failure: change on_start: always From 5d791460104d7471744fe22544e4cce6ee5e11cd Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Mon, 14 Dec 2015 13:00:39 +0530 Subject: [PATCH 51/56] Update shippable.yml --- shippable.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/shippable.yml b/shippable.yml index 448900b..135d8b3 100644 --- a/shippable.yml +++ b/shippable.yml @@ -18,23 +18,23 @@ script: notifications: - email: - recipients: - - chandrakanth@shippable.com - - vishal.chandru@gmail.com - - -- last_committer - on_success: change - on_failure: change - on_start: always - on_pull_request: never + #email: + #recipients: + # - chandrakanth@shippable.com + #- vishal.chandru@gmail.com + #- -- last_committer + #on_success: change + #on_failure: change + #on_start: always + #on_pull_request: never slack: account_integration: 566e4536b6bf9f1100524787 recipients: - '#slacktestck' - on_success: never - on_failure: change + on_success: always + on_failure: always on_start: always - on_pull_request: never + on_pull_request: always #irc: # pull_requests: true #channels: From 9029182b8760291e0ec13d799dfcfb49f981923b Mon Sep 17 00:00:00 2001 From: Chandrakanth Date: Thu, 17 Dec 2015 19:56:09 +0530 Subject: [PATCH 52/56] Update shippable.yml --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index 135d8b3..403e67a 100644 --- a/shippable.yml +++ b/shippable.yml @@ -28,7 +28,7 @@ notifications: #on_start: always #on_pull_request: never slack: - account_integration: 566e4536b6bf9f1100524787 + account_integration: 5672c0de7e5b451100282be4 recipients: - '#slacktestck' on_success: always From c44396ed6b762d85f7152f5b78874c81f42f0437 Mon Sep 17 00:00:00 2001 From: vidyatestghe Date: Tue, 5 Jan 2016 12:11:51 +0530 Subject: [PATCH 53/56] Update shippable.yml --- shippable.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index 403e67a..cc5e54c 100644 --- a/shippable.yml +++ b/shippable.yml @@ -28,9 +28,9 @@ notifications: #on_start: always #on_pull_request: never slack: - account_integration: 5672c0de7e5b451100282be4 + account_integration: 5656d1abf598e60c00835e98 recipients: - - '#slacktestck' + - '#prod' on_success: always on_failure: always on_start: always From 5e9cffa33402c8dc3c54a2e5ca4575c39ffbc752 Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 5 Jan 2016 12:18:56 +0530 Subject: [PATCH 54/56] Update shippable.yml --- shippable.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shippable.yml b/shippable.yml index cc5e54c..60ef416 100644 --- a/shippable.yml +++ b/shippable.yml @@ -2,10 +2,10 @@ language: - php php: - - 5.3 + #- 5.3 #- 5.4 - #- 5.5 - #- 5.6 + - 5.5 + - 5.6 before_script: - mkdir -p shippable/codecoverage From 77359834e27f650362b5f77d3c9bb89598787816 Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 5 Jan 2016 12:24:49 +0530 Subject: [PATCH 55/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..5a4c0f5 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(141, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class From 2eb8107634ea30bb3e4379a05524d349b3d16be2 Mon Sep 17 00:00:00 2001 From: buildsample Date: Tue, 5 Jan 2016 12:27:51 +0530 Subject: [PATCH 56/56] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 5a4c0f5..fdcd534 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(141, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class