Skip to content

Instantly share code, notes, and snippets.

@rjeczalik
Created September 30, 2014 08:17
Show Gist options
  • Save rjeczalik/d32ea4a68b500b965a8a to your computer and use it in GitHub Desktop.
Save rjeczalik/d32ea4a68b500b965a8a to your computer and use it in GitHub Desktop.
Deploying cmd/pulsecli
#!/usr/bin/env bash
GO_VER=1.3.1
PULSE_VER=2.6.19
PULSE_HOST=http://pulse
# Go
apt-get install -y curl git mercurial bison gcc make
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /.gvm/scripts/gvm
gvm install go$GO_VER --binary
gvm use go$GO_VER
# environment
export GOBIN=/usr/local/bin
export PATH=$PATH:/usr/local/pulse-dev-$PULSE_VER/bin
# cmd/pulsecli
go get -u github.com/x-formation/pulsekit/cmd/pulsecli
wget -q $PULSE_HOST/packages/pulse-dev-$PULSE_VER.tar.gz -O - | tar xfz - -C /usr/local
echo > xd.diff
pulsecli --user pulse_test --pass pulse_test -p 'License Statistics - Accept' --patch xd.diff --stage 'Build - Selenium test' personal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment