Skip to content

Commit

Permalink
feat: switch to go mod, refactor build toolchain, CI, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Apr 27, 2020
1 parent 7dbfe02 commit 11c9152
Show file tree
Hide file tree
Showing 372 changed files with 453 additions and 166,653 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2.1

orbs:
moul: moul/build@1.16.0 # https://github.com/moul/build

workflows:
main:
jobs:
- moul/golang-build:
gopkg: github.com/moul/gotty-client
- moul/golang-build:
gopkg: github.com/moul/gotty-client
tag: '1.13'
- moul/golang-build:
gopkg: github.com/moul/gotty-client
tag: '1.12'
- moul/golang-build:
gopkg: github.com/moul/gotty-client
tag: '1.11'
- moul/docker-build
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto

# Collapse vendored and generated files on GitHub
AUTHORS linguist-generated
vendor/* linguist-vendored
rules.mk linguist-vendored
*/vendor/* linguist-vendored
*.gen.* linguist-generated
*.pb.go linguist-generated
*.pb.gw.go linguist-generated
go.sum linguist-generated
go.mod linguist-generated
gen.sum linguist-generated

# Reduce conflicts on markdown files
*.md merge=union
44 changes: 21 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
/gotty-client
/dist
# Temporary files
*~
*#
.#*
coverage.txt

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go
# Vendors
package-lock.json
node_modules/
vendor/

# Binaries for programs and plugins
dist/
gin-bin
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test
*.prof

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

19 changes: 19 additions & 0 deletions AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# build
FROM golang:1.12 as builder
RUN apt update && apt -y install jq
COPY . /go/src/github.com/moul/gotty-client
FROM golang:1.14-alpine as builder
RUN apk add --no-cache git gcc musl-dev make
WORKDIR /go/src/github.com/moul/gotty-client
COPY go.* ./
RUN go mod download
COPY . ./
RUN make install

# minimal runtime
FROM scratch
COPY --from=builder /go/bin/gotty-client /bin/gotty-client
FROM alpine:3.11
COPY --from=builder /go/bin/gotty-client /bin/
ENTRYPOINT ["/bin/gotty-client"]
192 changes: 0 additions & 192 deletions LICENSE.apache

This file was deleted.

Loading

0 comments on commit 11c9152

Please sign in to comment.