Permalink
Browse files

minor changes in the output as well as another attempt to auto-release

  • Loading branch information...
1 parent 76df0a6 commit 6d061027068710fc2a09561a08024797058e2ce6 @santiycr santiycr committed Jun 10, 2011
Showing with 21 additions and 9 deletions.
  1. +11 −5 Makefile
  2. +3 −2 PHPUnit/Extensions/SeleniumTestCase/SauceOnDemandTestCase.php
  3. +1 −2 autoupdate_package.py
  4. +6 −0 get_release.py
View
@@ -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
@@ -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();
View
@@ -32,5 +32,4 @@
with open("package.xml", "w") as new:
new.write(package.toxml())
-
-
+print release
View
@@ -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.