mirror of https://github.com/dmarkham/enumer.git
Merge pull request #10 from dmarkham/travis-setup
testing and deploy with travis
This commit is contained in:
commit
cff78b5241
13
.travis.yml
13
.travis.yml
|
@ -12,17 +12,16 @@ env:
|
|||
after_success:
|
||||
- make build-cli
|
||||
deploy:
|
||||
- provider: releases
|
||||
provider: releases
|
||||
api_key:
|
||||
secure: AUbu2A4D6a7gzbmnJMcOILLMTcRLvC0MyEPQFJw1apRXAMRi4hWDYfmR9L3CdftvyMPyKzhRsCeXk3AuvcjsVN4IPglb/3Uy4Ot52vHfRbMNY6H+dMU/rBq+VFFzFaTzvIYCR9ai9EwhiORVpO1QMip+aATQE2sEQJOVC/uf373wrn+u6TVOiTvskTlR8aCRCW/MibdYzZXiuCdKoPgCqUxAXYStIuc62PX9Y8EP2GZ5N6nCNAlVY64XjStQyi5d19nJzQuvG0x6/JQe99Z39H6yEDWkBMaCPPtP0yPZcwGQ5BxummKLtZP7QM83wSuS3954IhHDFabZc7It36uBu7KuBZZsURAVCnKU54WB0MO17naWxuTClqMxHBes3j9iVGw8BWaNzVORqb+JQ09cytn+BcaoOqvvfovDzmYmqBxT+dy1ZgtLp2cgk+be5mjPC1FvrtIKhqDE+fKqhw+Ogmq7L2F7Oe4WZqGj0iFGbSBODxaRW9T1OylrlUol76Qjd0ylbOQ4i/x3luu5LiRICNXw61IvgTEtmCjt1e3K6flbrGDk7XTCMKKvVekJQsm+oYzSnTVi/p8rT1ZXPfR3X0qtKkbU3T8o3dH/AqfqnUBaE7O5tqNvq+eTqUuoLoRogUpjjLa9IL4a4m+Gn6ZsxdyAPNycFesyIEZd1cupoTg=
|
||||
secure: VnwZNdY9ryTKIStuy8vJUq3QwyDQe9RVstjLB6kdSj+LE9bg6MDOSYtoN/ricdL0xqYctvYTWpWrt4TNzGOgrzRPV6EriMs0dy4JL1Q+teKWM1Q7/AwTZqINZ4SbczibX+Y66BqB39Ca5+b8Qg6ijP2wu1Yiss9ro9XIdVvNib4/tg1bas1JtDueGTJPm3wYIMexNHP+nGqo6LCSoAO1ul6aEnGb0JlHQkdUKNT05XAQXcNwzuylQ+ckfttMTeBJkeag5xl20hh0g7EYUh+JtQkfkfazyug5PqjO+nxHfdHn1EHq5CTX679UTOM/0EIXqC8LyKIux0p2+4cufAwuArsw9X0e0ui3qL0389Ac+6D3F0fC6we4/BDT79C1DBpdw+eK+wO2roWqSGRymlhbjG5sVmYERDF831OdAy8/7w+pI3NKlGL+BiYEjhRKR33ldRuwf8X82MtWJCVht67guxLHSq09HE9i774yP0aw3h4LmeI2lGdVD2tsb/awhjVnNL3jMylimU7am2qW6Kb6hGXMv8WENX5QmpgXkm0VUT2TCopKjL6fOefJYW0FpPJjb9wFrSdT7csXwu/XhoQTnNBMEKc1FDqX9pb2m/BNvHAnZdwawBS9ysLnMcORGL11Wql+p1D1xfvIGFB1rQs/xdPRJ0/pao+cS6+hLxi1fyI=
|
||||
skip_cleanup: true
|
||||
draft: true
|
||||
on:
|
||||
go: 1.12.x
|
||||
repo: dmarkham/enumer
|
||||
tags: true
|
||||
file:
|
||||
- cli/build/enumer.linux-amd64.tar.gz
|
||||
- cli/build/enumer.darwin-amd64.tar.gz
|
||||
- cli/build/enumer.windows-amd64.exe.tar.gz
|
||||
- cli/build/sha256sum.txt
|
||||
on:
|
||||
go: 1.12.x
|
||||
repo: dmarkham/enumer
|
||||
tags: true
|
||||
|
|
6
Makefile
6
Makefile
|
@ -1,4 +1,8 @@
|
|||
|
||||
|
||||
test:
|
||||
go test -v ./...
|
||||
|
||||
build-cli: clean
|
||||
-mkdir -p ./cli/build
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o ./cli/build/enumer.linux-amd64 .
|
||||
|
@ -17,3 +21,5 @@ release:
|
|||
|
||||
clean:
|
||||
-rm -r ./cli/build
|
||||
|
||||
SHELL = /bin/bash
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
Enumer is a tool to generate Go code that adds useful methods to Go enums (constants with a specific type).
|
||||
It started as a fork of [Rob Pike’s Stringer tool](https://godoc.org/golang.org/x/tools/cmd/stringer)
|
||||
maintained by [Álvaro López Espinosa](https://github.com/alvaroloes/enumer).
|
||||
This was again forked here as (https://github.com/dmarkham/enumer) picking up where Álvaro left off.
|
||||
|
||||
|
||||
## Generated functions and methods
|
||||
|
|
Loading…
Reference in New Issue