Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
minor changes in the output as well as another attempt to auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
santiycr committed Jun 23, 2011
1 parent 76df0a6 commit 6d06102
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
16 changes: 11 additions & 5 deletions Makefile
@@ -1,15 +1,21 @@
all:
@echo Please run "auto release" to confirm and make a release
@echo Please run "make release" to confirm and make a release

RELEASE = $(shell python get_release.py)

autoupdate:
python autoupdate_package.py

release: autoupdate
git add package.xml
git commit -m "automatic $(RELEASE) release"
pear package-validate
pear package
pirum add pear phpunit-selenium-sauceondemand/PHPUnit_Selenium_SauceOnDemand-1.2.4.tgz
git add package.xml
git commit -m "automatic release"
git push origin gh-pages)
cd ..
pirum add pear phpunit-selenium-sauceondemand/PHPUnit_Selenium_SauceOnDemand-$(RELEASE).tgz
cd pear
git add -A
git commit -m "automatic $(RELEASE) release"
git push origin gh-pages


5 changes: 3 additions & 2 deletions PHPUnit/Extensions/SeleniumTestCase/SauceOnDemandTestCase.php
Expand Up @@ -408,9 +408,10 @@ protected function onNotSuccessfulTest(Exception $e)
$this->drivers[0]->getSessionId()
);

$buffer = 'Current URL: ' . $this->drivers[0]->getLocation() .
$buffer = 'Current Browser URL: ' . $this->drivers[0]->getLocation() .
"\n" .
'Job URL: ' . $jobUrl;
'Sauce Labs Job: ' . $jobUrl .
"\n";

$this->stop();

Expand Down
3 changes: 1 addition & 2 deletions autoupdate_package.py
Expand Up @@ -32,5 +32,4 @@
with open("package.xml", "w") as new:
new.write(package.toxml())



print release
6 changes: 6 additions & 0 deletions get_release.py
@@ -0,0 +1,6 @@
from xml.dom import minidom

package = minidom.parse("package.xml")
current_release = package.getElementsByTagName("version")[0].getElementsByTagName("release")[0].childNodes[0].data

print current_release

0 comments on commit 6d06102

Please sign in to comment.