forked from securego/gosec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a semantic version to the usage text * Add a comment to the version function * Inject the version, git tag and build date as build variables * Update README * Fix lint warnings * Update README * Manage dependencies with dep tool instead of godep * Add a Makefile for common build tasks * Update the build file to use the make tool * Update Dockerfile * Add docker entry point in to make the passing of arguments easy * Update README * Add missing tools to the build * Drop 1.7 support and add 1.10 * Fix Go 1.10 according with the travis guidelines https://docs.travis-ci.com/user/languages/go/ * Update the tls-observatory package * Fix lint warnings * Change the output of the tests to be more verbose * Check if the are build errors before executing the rule test
- Loading branch information
Showing
13 changed files
with
311 additions
and
348 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,25 +1,20 @@ | ||
language: go | ||
|
||
go: | ||
- 1.7 | ||
- 1.8 | ||
- 1.9 | ||
- "1.10" | ||
- tip | ||
|
||
install: | ||
- go get -u github.com/golang/dep/cmd/dep | ||
- go get -u github.com/golang/lint/golint | ||
- go get -v github.com/onsi/ginkgo/ginkgo | ||
- go get -v github.com/onsi/gomega | ||
- go get -v golang.org/x/crypto/ssh | ||
- go get github.com/GoASTScanner/gas/cmd/gas/... | ||
- go get -u github.com/onsi/ginkgo/ginkgo | ||
- go get -u github.com/onsi/gomega | ||
- go get -u golang.org/x/crypto/ssh | ||
- go get -u github.com/GoASTScanner/gas/cmd/gas/... | ||
- go get -v -t ./... | ||
- export PATH=$PATH:$HOME/gopath/bin | ||
|
||
before_script: | ||
- test -z "$(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)" | ||
- test -z "$(golint . | tee /dev/stderr)" | ||
- go vet $(go list ./... | grep -v /vendor/) | ||
- gas ./... | ||
|
||
script: ginkgo -r | ||
script: make test | ||
|
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,23 +1,8 @@ | ||
# Docker version must be 17.05 or higher to allow multistage build | ||
# See build and run instructions in README.md | ||
FROM golang:1.9.4-alpine3.7 | ||
|
||
# Builds Gas for utilization | ||
FROM golang:1.8.1-alpine as builder | ||
ENV workspace /go/src/github.com/GoASTScanner/gas | ||
ENV GOPATH /go | ||
COPY . $workspace | ||
WORKDIR $workspace | ||
ENV BIN=gas | ||
|
||
RUN go vet $(go list ./... | grep -v /vendor/) | ||
RUN CGO_ENABLED=0 go build -o gas . | ||
COPY build/*-linux-amd64 /go/bin/$BIN | ||
COPY docker-entrypoint.sh /usr/local/bin | ||
|
||
######################################################## | ||
|
||
# Runs Gas on all Go files in the current directory when | ||
# 'docker run' command in README is given | ||
FROM alpine:3.6 | ||
|
||
COPY --from=builder /go/src/github.com/GoASTScanner/gas/gas / | ||
|
||
# Mounted directory should be placed into the workdir | ||
CMD /gas $(find . -path ./vendor -prune -o -type f -name "*.go") | ||
ENTRYPOINT ["docker-entrypoint.sh"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.