Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a9d26bec
authored
Oct 12, 2015
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run commands in Make on wercker
1 parent
c8fb3065
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
20 deletions
.gitignore
Godeps/Godeps.json
Makefile
wercker.yml
.gitignore
View file @
a9d26be
gotty
gotty
bindata
bindata
builds
Godeps/Godeps.json
View file @
a9d26be
{
{
"ImportPath"
:
"github.com/yudai/gotty"
,
"ImportPath"
:
"github.com/yudai/gotty"
,
"GoVersion"
:
"go1.5"
,
"GoVersion"
:
"go1.5
.1
"
,
"Deps"
:
[
"Deps"
:
[
{
{
"ImportPath"
:
"github.com/braintree/manners"
,
"ImportPath"
:
"github.com/braintree/manners"
,
...
...
Makefile
View file @
a9d26be
OUTPUT_DIR
=
./builds
gotty
:
app/resource.go main.go app/*.go
gotty
:
app/resource.go main.go app/*.go
go build
go build
...
@@ -28,3 +30,24 @@ bindata/static/js/hterm.js: bindata/static/js libapps/hterm/js/*.js
...
@@ -28,3 +30,24 @@ bindata/static/js/hterm.js: bindata/static/js libapps/hterm/js/*.js
bindata/static/js/gotty.js
:
bindata/static/js resources/gotty.js
bindata/static/js/gotty.js
:
bindata/static/js resources/gotty.js
cp resources/gotty.js bindata/static/js/gotty.js
cp resources/gotty.js bindata/static/js/gotty.js
tools
:
go get github.com/tools/godep
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
deps
:
godep restore
test
:
if
[
`
go fmt ./... | wc -l
`
-gt 0
]
;
then
echo
"go fmt error"
;
exit
1;
fi
cross_compile
:
GOARM
=
5 gox -os
=
"darwin linux freebsd netbsd openbsd"
-arch
=
"386 amd64 arm"
-output
"
${
OUTPUT_DIR
}
/pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"
targz
:
mkdir -p
${
OUTPUT_DIR
}
/dist
cd
${
OUTPUT_DIR
}
/pkg/;
for
osarch
in
*
;
do
(
cd
$$
osarch; tar zcvf ../../dist/gotty_
$$
osarch.tar.gz ./
*
)
;
done
;
release
:
ghr --delete --prerelease -u yudai -r gotty pre-release
${
OUTPUT_DIR
}
/dist
wercker.yml
View file @
a9d26be
box
:
tcnksm/gox
box
:
golang:1.5.1
build
:
build
:
steps
:
steps
:
-
setup-go-workspace
-
setup-go-workspace
-
script
:
-
script
:
name
:
go get
name
:
tools
code
:
|
code
:
make tools
go get github.com/tools/godep
-
script
:
godep restore
name
:
deps
-
script
:
code
:
make deps
name
:
check format
-
script
:
code
:
|
name
:
test
if [ `go fmt ./... | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
code
:
make test
-
tcnksm/gox
:
-
script
:
os
:
"
darwin
linux
freebsd
netbsd
openbsd"
name
:
cross compile
arch
:
"
386
amd64
arm"
code
:
make cross_compile OUTPUT_DIR=$WERCKER_OUTPUT_DIR
-
yudai/targz
:
-
script
:
input
:
$WERCKER_OUTPUT_DIR/pkg
name
:
targz
output
:
$WERCKER_OUTPUT_DIR/dist
code
:
make targz OUTPUT_DIR=$WERCKER_OUTPUT_DIR
-
script
:
name
:
store Makefile
code
:
cp Makefile $WERCKER_OUTPUT_DIR/
deploy
:
deploy
:
steps
:
steps
:
-
tcnksm/ghr
:
-
script
:
token
:
$GITHUB_TOKEN
name
:
tools
input
:
dist
code
:
make tools
replace
:
true
-
script
:
name
:
release
code
:
make release OUTPUT_DIR=.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment