Extract install-wordepress

This commit is contained in:
Adam Harrison committed 2016-10-03 14:01:15 +01:00
1 parent 835b3f3d67
commit 4c304c0013
5 files changed
+15 -23

No files matched your search

+1 -4
View File
@@ -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
+1 -4
View File
@@ -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"
+1 -6
View File
@@ -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"
-9
View File
@@ -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
}
+12
View File
@@ -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