Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Commit

Permalink
Add code analysis via GAS (#264)
Browse files Browse the repository at this point in the history
* Add code analysis via GAS

* Address yaml validation error

* Add command to go get HewlettPackard/gas/

* Write GAS findings to stdout during build
  • Loading branch information
mbearup authored and paulmey committed Aug 24, 2016
1 parent 853e60a commit 1eaf690
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ env:
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/matm/gocov-html
- go get github.com/HewlettPackard/gas

script:
- (cd packer && gas -fmt=json -out=results.json ./... > /dev/null)
- cat packer/results.json
- test $(grep -c "\"severity\":\s*\"HIGH\"" packer/results.json) -lt 8
- test -z "$(go fmt ./packer/... | tee /dev/stderr)"
- go build -v ./packer/...
- test -z "$(go vet ./packer/... | tee /dev/stderr)"
Expand Down

0 comments on commit 1eaf690

Please sign in to comment.