Skip to content

Commit 2255a89

Browse files
committed
Merge pull request #10 from suma/feature/travis-2
Fix .travis.yml for import path
2 parents 8056182 + 14a30a2 commit 2255a89

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.travis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
language: go
22
go:
33
- 1.4.3
4-
- 1.5.3
5-
- 1.6
4+
- 1.5.4
5+
- 1.6.2
66

77
sudo: true
88

99
notifications:
1010
email: false
1111

12+
go_import_path: gopkg.in/sensorbee/py.v0
13+
1214
before_install:
1315
- env
1416
- lsb_release -a
1517
- sudo apt-get -qq update
1618
- sudo apt-get -qq install python-dev python-pip pkg-config
1719
- sudo pip install six msgpack-python
1820
- go version
21+
22+
install:
23+
- if [ "$TRAVIS_GO_VERSION" != "1.4.3" ]; then go get github.com/golang/lint/golint; fi
1924
- go get github.com/mattn/goveralls
2025
- go get golang.org/x/tools/cmd/cover
2126
- go get github.com/pierrre/gotestcover
22-
23-
install:
2427
- go get -t -d -v ./...
2528

29+
before_script:
30+
- if [ "$TRAVIS_GO_VERSION" != "1.4.3" ]; then golint ./... | tee .golint.txt && test ! -s .golint.txt; fi
31+
2632
script:
2733
- go build -v ./...
2834
- gotestcover -v -covermode=count -coverprofile=.profile.cov -parallelpackages=1 ./...
2935

3036
after_success:
31-
- if [ "$TRAVIS_GO_VERSION" = "1.6" ]; then goveralls -coverprofile=.profile.cov -repotoken $COVERALLS_TOKEN; fi
37+
- if [ "$TRAVIS_GO_VERSION" = "1.6.2" ]; then goveralls -coverprofile=.profile.cov -repotoken $COVERALLS_TOKEN; fi

0 commit comments

Comments
 (0)