Skip to content

Commit

Permalink
Reorganize project structure (#38)
Browse files Browse the repository at this point in the history
* Reorganize project

* Update .goreleaser.yml

* Update unipdf to version 3.0.1

* Remove goreleaser from .travis.yml

* Update README.md

* Add Makefile

* Add golint and go vet to .travis.yml

* Fix .travis.yml

* Add before_install section to .travis.yml
  • Loading branch information
adrg authored and gunnsth committed Jun 4, 2019
1 parent d9f6f06 commit decf8c9
Show file tree
Hide file tree
Showing 49 changed files with 306 additions and 171 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
unipdf
unicli
cmd/unipdf/unipdf
*.pdf
*.fdf
*.zip
Expand Down
38 changes: 19 additions & 19 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
project_name: unicli
project_name: unipdf-cli

release:
github:
owner: unidoc
name: unicli

name: unipdf-cli
before:
hooks:
- go mod download
builds:
- binary: unicli
- binary: unipdf
goos:
- darwin
- windows
Expand All @@ -17,25 +19,23 @@ builds:
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: .

archive:
format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- README.md

main: ./cmd/unipdf/main.go
archives:
- id: default
format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- README.md
dist: bin
snapshot:
name_template: SNAPSHOT-{{ .Commit }}

checksum:
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'

changelog:
sort: asc
filters:
Expand Down
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ go:
- tip
env:
- GO111MODULE=on
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
before_install:
- go get golang.org/x/lint/golint
script:
- go vet ./...
- golint ./...
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: build
build:
GO111MODULE=on go build -o ./bin/unipdf ./cmd/unipdf/main.go
build-all:
goreleaser --snapshot --skip-publish --rm-dist
release:
goreleaser release
clean:
rm -rf ./bin

0 comments on commit decf8c9

Please sign in to comment.