3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00

first pass at #409

This commit is contained in:
Shivaram Lingamneni 2019-02-21 03:29:39 -05:00
parent 234d011c29
commit b6feca05a3
3 changed files with 21 additions and 9 deletions

View File

@ -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

View File

@ -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
View 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