mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
first pass at #409
This commit is contained in:
parent
234d011c29
commit
b6feca05a3
@ -3,10 +3,6 @@ language: go
|
||||
go:
|
||||
- "1.11.x"
|
||||
|
||||
install: make deps
|
||||
|
||||
script:
|
||||
- wget https://github.com/goreleaser/goreleaser/releases/download/v0.62.2/goreleaser_Linux_x86_64.tar.gz
|
||||
- tar -xzf goreleaser_Linux_x86_64.tar.gz -C $GOPATH/bin
|
||||
- make
|
||||
- make test
|
||||
|
10
Makefile
10
Makefile
@ -1,13 +1,13 @@
|
||||
.PHONY: all build
|
||||
.PHONY: all install release capdefs deps test
|
||||
|
||||
capdef_file = ./irc/caps/defs.go
|
||||
|
||||
all: build
|
||||
all: install
|
||||
|
||||
build:
|
||||
goreleaser --snapshot --rm-dist
|
||||
install: deps
|
||||
./install.sh
|
||||
|
||||
buildrelease:
|
||||
release:
|
||||
goreleaser --skip-publish --rm-dist
|
||||
|
||||
capdefs:
|
||||
|
16
install.sh
Executable file
16
install.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$GOPATH" ]; then
|
||||
echo \$GOPATH is unset: see https://golang.org/doc/code.html for details
|
||||
exit 1
|
||||
fi
|
||||
|
||||
EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
|
||||
|
||||
if [ `pwd` != "$EXPECTED_DIR" ] ; then
|
||||
echo working checkout is not where \$GOPATH expects it: should be $EXPECTED_DIR
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go install -v
|
||||
echo successfully installed as ${GOPATH}/bin/oragono
|
Loading…
Reference in New Issue
Block a user