Skip to content

Commit

Permalink
Add check for breaking API changes
Browse files Browse the repository at this point in the history
This should be able to detect breaking API changes in pull
requests. When the breaking changes are by design we must ignore
the failing CI.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
  • Loading branch information
ahmetb committed Jan 12, 2017
1 parent 5216d9c commit a4871ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get -u github.com/golang/lint/golint
- go get -u github.com/bradleyfalzon/apicompat/cmd/apicompat

script:
- go vet -x ./...
- golint ./...
- go test -v ./...
- go test -covermode=count -coverprofile=profile.cov
- git --git-dir /home/travis/gopath/src/github.com/ahmetalpbalkan/go-linq/.git ls-tree master ./ || true
- test -z "$(apicompat -before ${TRAVIS_COMMIT_RANGE%...*} -after ${TRAVIS_COMMIT_RANGE#*...} ./... | tee /dev/stderr)"

after_script:
- goveralls -coverprofile=profile.cov -service=travis-ci
- goveralls -coverprofile=profile.cov -service=travis-ci

0 comments on commit a4871ed

Please sign in to comment.