This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
forked from dotsunited/phpunit-selenium-sauceondemand
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor changes in the output as well as another attempt to auto-release
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,4 @@ | |
with open("package.xml", "w") as new: | ||
new.write(package.toxml()) | ||
|
||
|
||
|
||
print release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |