-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from xuqingfeng/patch-refactor
Patch refactor
- Loading branch information
Showing
23 changed files
with
136 additions
and
2,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
.idea | ||
|
||
mailman | ||
out | ||
out/* | ||
!out/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
language: go | ||
go: | ||
- 1.8 | ||
- 1.x | ||
- tip | ||
os: | ||
- linux | ||
install: | ||
- go get github.com/rakyll/statik | ||
- go get -v ./... | ||
script: | ||
- go test -v ./... | ||
- make test | ||
- make build-all | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: B5T7Z7NA+/kgsPlEBDKrPfhb1LFeG3tqf3uIydfpR+rQWwAYcRzP8aGqxwSiwTOMYJ6nDuX7Gb3XUWN/Tbl9hoS489PVv/vFLCqd58Da8ATn9aPUy0KIKh/qllIkP/y2RCp4zj1vVtXSNx2udFqX7C4Pc4Fe6F4KY3Da605drpWyKejpqmqvr8xOA5QBVjnfsRh9QbT2lgDheraV6LzHXGB9XFTKfNvBXsr+VzwVOr5v+iiUw/vKo+4sawcrDNwzl14gP7RpRX3itiQTTRmxNR8cpy61tiPP344FTfkQ1S44oICY27tDC4/ez5hrD/y1blLu0YImQXcTvgGql63bvMPSa205HjjbtxR2JBOGYzsYoL5I8+D+NfdgBXr3rtXy3YyOLSHxmnFAERnupcvHrpbc6R7FmKZgHFwTAtWX0Ggu+ABPbJNF1MS25WIfYScDZJL2JUQe+0TZ11u2M90B0gZGWwdlMHZhHv7dtkWipxM7PJw+NzJxu068bIP1pBjZrUKqhpaPuiEjQE7X5SE8cBMEtt0ToKZe2bcbB2ChvlDYfudLoOfCLEQXkrKjL1O7rOZ/+7veFleb2W8erCY8VbrZwMfdfLGcKsZJOjLvgaWWwDba8yBVCgb+AdKwdvA8uaHaDcvZjUjuvMYfYIwMFkfQltevuQeVT71UYhxD56A= | ||
file_golb: true | ||
file: out/mailman* | ||
skip_cleanup: true | ||
on: | ||
repo: xuqingfeng/mailman | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
VERSION=`git describe --abbrev=0 --tags` | ||
|
||
.PHONY: all run | ||
|
||
all: run | ||
|
||
run: build | ||
./mailman | ||
|
||
build: build-template | ||
go-bindata ui/... && go build | ||
build: generate | ||
go build -o mailman main.go | ||
|
||
build-template: fmt # TODO: change package name | ||
cd mail && go-bindata -o bindata.go && cd - | ||
generate: | ||
go generate | ||
|
||
fmt: | ||
go fmt ./... | ||
|
||
test: | ||
go test ./... | ||
go vet ./... && go test -v $$(go list ./... | grep -v /vendor/) | ||
|
||
bin: | ||
gox -osarch="linux/amd64 linux/386 linux/arm darwin/amd64 windows/386 windows/amd64" | ||
build-all: fmt generate | ||
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-linux-amd64 main.go && \ | ||
GOOS=linux GOARCH=386 go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-linux-386 main.go && \ | ||
GOOS=linux GOARCH=arm go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-linux-arm main.go && \ | ||
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-darwin-amd64 main.go && \ | ||
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-windows-amd64.exe main.go && \ | ||
GOOS=windows GOARCH=386 go build -ldflags "-w -s -X main.version=${VERSION}" -o out/mailman-windows-386.exe main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# mailman | ||
>Web email client supporting HTML template and SMTP | ||
>Web email client supporting HTML template and SMTP | ||
[![Travis CI](https://img.shields.io/travis/xuqingfeng/mailman/master.svg)](https://travis-ci.org/xuqingfeng/mailman) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/xuqingfeng/mailman)](https://goreportcard.com/report/github.com/xuqingfeng/mailman) | ||
|
||
[中文](./README.md) | English | ||
|
||
[DEMO](https://github.com/xuqingfeng/mailman/wiki/demo) | ||
[DEMO](https://github.com/xuqingfeng/mailman/wiki/Demo) | ||
|
||
### Install | ||
|
||
```sh | ||
go get -u github.com/xuqingfeng/mailman | ||
|
||
mailman | ||
mailman -h | ||
``` | ||
|
||
or download the binary file [here](https://github.com/xuqingfeng/mailman/releases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.