Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable go lint in travis #115

Merged
merged 3 commits into from
Apr 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
sudo: false
sudo: required
language: python
python:
- "2.7"
env:
- TOX_ENV=py27
- TOX_ENV=flake8
install: pip install tox-travis
script: tox -e $TOX_ENV
before_install:
- export GOPATH=$HOME/go
- export PATH=$HOME/usr/local/go/bin:$GOPATH/bin:$PATH
- mkdir -p $GOPATH/src/github.com/openvswitch
- mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/openvswitch/ovn-kubernetes
- cd $GOPATH/src/github.com/openvswitch/ovn-kubernetes
install:
- pip install tox-travis
- eval "$(gimme 1.8.1)"
script:
- tox -e $TOX_ENV
- cd go-controller
- make
- make gofmt
- make install.tools
- make lint
2 changes: 1 addition & 1 deletion go-controller/hack/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ for d in $(find . -type d -not -iwholename '*.git*' -a -not -iname '.tool' -a -n
--cyclo-over=60 \
--dupl-threshold=100 \
--tests \
--deadline=30s "${d}"
--deadline=240s "${d}"
done