Skip to content

Commit

Permalink
Vendor deps and add release target to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfeidau committed Sep 11, 2016
1 parent f65b049 commit cbc7f62
Show file tree
Hide file tree
Showing 21 changed files with 124 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .credentials

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.credentialsbuild
.credentials
dist
build
packages
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ ARCH=$(shell uname -m)
VERSION=1.0.0
ITERATION := 1

build:
deps:
glide install

build: deps
rm -rf build && mkdir build
mkdir -p build/Linux && GOOS=linux go build -ldflags "-X main.Version=$(VERSION)" -o build/Linux/$(NAME) ./cmd/$(NAME)
mkdir -p build/Darwin && GOOS=darwin go build -ldflags "-X main.Version=$(VERSION)" -o build/Darwin/$(NAME) ./cmd/$(NAME)
mkdir -p build/Darwin && GOOS=windows go build -ldflags "-X main.Version=$(VERSION)" -o build/Windows/$(NAME).exe ./cmd/$(NAME)
mkdir -p build/Windows && GOOS=windows go build -ldflags "-X main.Version=$(VERSION)" -o build/Windows/$(NAME).exe ./cmd/$(NAME)

release: build
rm -rf release && mkdir release
tar -zcf release/$(NAME)_$(VERSION)_linux_$(ARCH).tgz -C build/Linux $(NAME)
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(ARCH).tgz -C build/Darwin $(NAME)
build/$(shell uname)/gh-release create versent/$(NAME) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD)

test:
go test -v ./...
go test -v $(shell glide novendor)

.PHONY: build test release packages
73 changes: 73 additions & 0 deletions glide.lock

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

22 changes: 22 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package: github.com/versent/saml2aws
import:
- package: github.com/PuerkitoBio/goquery
- package: github.com/alecthomas/kingpin
- package: github.com/aws/aws-sdk-go
subpackages:
- aws
- aws/session
- service/sts
- package: github.com/beevik/etree
- package: github.com/pkg/errors
- package: golang.org/x/crypto
subpackages:
- ssh/terminal
- package: golang.org/x/net
subpackages:
- publicsuffix
- package: gopkg.in/ini.v1
testImport:
- package: github.com/stretchr/testify
subpackages:
- assert
1 change: 1 addition & 0 deletions vendor/github.com/PuerkitoBio/goquery
Submodule goquery added at 152b1a
1 change: 1 addition & 0 deletions vendor/github.com/alecthomas/kingpin
Submodule kingpin added at d2d8a9
1 change: 1 addition & 0 deletions vendor/github.com/alecthomas/template
Submodule template added at a0175e
1 change: 1 addition & 0 deletions vendor/github.com/alecthomas/units
Submodule units added at 2efee8
1 change: 1 addition & 0 deletions vendor/github.com/andybalholm/cascadia
Submodule cascadia added at 1c31af
1 change: 1 addition & 0 deletions vendor/github.com/aws/aws-sdk-go
Submodule aws-sdk-go added at 2c129c
1 change: 1 addition & 0 deletions vendor/github.com/beevik/etree
Submodule etree added at ce53c4
1 change: 1 addition & 0 deletions vendor/github.com/davecgh/go-spew
Submodule go-spew added at 5215b5
1 change: 1 addition & 0 deletions vendor/github.com/go-ini/ini
Submodule ini added at 6e4869
1 change: 1 addition & 0 deletions vendor/github.com/jmespath/go-jmespath
Submodule go-jmespath added at bd40a4
1 change: 1 addition & 0 deletions vendor/github.com/pkg/errors
Submodule errors added at 17b591
1 change: 1 addition & 0 deletions vendor/github.com/pmezard/go-difflib
Submodule go-difflib added at d8ed26
1 change: 1 addition & 0 deletions vendor/github.com/stretchr/testify
Submodule testify added at d77da3
1 change: 1 addition & 0 deletions vendor/golang.org/x/crypto
Submodule crypto added at aa2481
1 change: 1 addition & 0 deletions vendor/golang.org/x/net
Submodule net added at cfe3c2
1 change: 1 addition & 0 deletions vendor/gopkg.in/ini.v1
Submodule ini.v1 added at 6e4869

0 comments on commit cbc7f62

Please sign in to comment.