Extract install-wordepress
This commit is contained in:
1 parent
835b3f3d67
commit
4c304c0013
5 files changed
+15
-23
No files matched your search
@@ -3,8 +3,6 @@
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
source "$(dirname "$(readlink -f "$0")")/circle-functions"
|
||||
|
||||
source "$STATE"
|
||||
|
||||
site_changes() {
|
||||
@@ -33,9 +31,8 @@ post_comment() {
|
||||
https://api.github.com/repos/weaveworks/weave/issues/$GH_PR/comments > /dev/null
|
||||
}
|
||||
|
||||
install_wordepress v1.0.0
|
||||
|
||||
cd $SRCDIR
|
||||
bin/install-wordepress v1.0.0
|
||||
bin/publish-site "$WP_DEV_URL" "$WP_DEV_USER" "$WP_DEV_PASSWORD"
|
||||
|
||||
if [ -n "$WP_GH_COMMENT_TOKEN" -a -n "$GH_PR" ] ; then
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$(readlink -f "$0")")/circle-functions"
|
||||
|
||||
source "$STATE"
|
||||
|
||||
if [ -z "$SKIP_TESTS" ] ; then
|
||||
@@ -13,7 +11,6 @@ if [ -z "$SKIP_TESTS" ] ; then
|
||||
make publish
|
||||
fi
|
||||
|
||||
install_wordepress v1.0.0
|
||||
|
||||
cd $SRCDIR
|
||||
bin/install-wordepress v1.0.0
|
||||
bin/publish-site "$WP_DEV_URL" "$WP_DEV_USER" "$WP_DEV_PASSWORD"
|
||||
@@ -2,11 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$(readlink -f "$0")")/circle-functions"
|
||||
|
||||
source "$STATE"
|
||||
|
||||
install_wordepress v1.0.0
|
||||
|
||||
cd $SRCDIR
|
||||
bin/install-wordepress v1.0.0
|
||||
bin/publish-site "$WP_LIVE_URL" "$WP_LIVE_USER" "$WP_LIVE_PASSWORD"
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
install_wordepress() {
|
||||
go get github.com/weaveworks/wordepress
|
||||
cd /home/ubuntu/src/github.com/weaveworks/wordepress
|
||||
git checkout $1
|
||||
cd cmd/wordepress
|
||||
go get
|
||||
}
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -ne 1 ] ; then
|
||||
echo USAGE: install-wordepress [COMMIT-ISH] >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go get github.com/weaveworks/wordepress
|
||||
cd /home/ubuntu/src/github.com/weaveworks/wordepress
|
||||
git checkout $1
|
||||
cd cmd/wordepress
|
||||
go get
|
||||
Reference in new issue
Block a user