-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwercker-box.yml
More file actions
42 lines (36 loc) · 1.12 KB
/
Copy pathwercker-box.yml
File metadata and controls
42 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: peco-build
version: 0.0.3
inherits: wercker/ubuntu12.04-webessentials@1.0.0
type : main
platform : ubuntu@12.04
description : box used to build peco (https://github.com/peco/peco)
keywords:
- golang
- go
- peco
- cross-compile
packages:
- golang@1.3.3
- git
- mercurial
script: |
version="1.3.3"
sudo apt-get update
sudo apt-get install bzr
sudo apt-get install mercurial
wget http://golang.org/dl/go${version}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${version}.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a /etc/profile
rm go${version}.linux-amd64.tar.gz
# Set GOPATH
export GOPATH="$HOME/go"
echo 'export GOPATH="$HOME/go"' | sudo tee -a /etc/profile
# Adds go bin directory to path so tools
# and buils are available on the commandline
export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
echo 'export PATH="$PATH:$GOPATH/bin"' | sudo tee -a /etc/profile
# Make actual go workspace dir structure
mkdir -p "$HOME/go/{src,pkg,bin}"
go get -u -v github.com/laher/goxc
go get -u -v github.com/tools/godep
sudo -E env PATH=$GOPATH/bin:$PATH goxc -t