go-ethereum/.travis.yml

31 lines
1.4 KiB
YAML
Raw Normal View History

2014-11-16 03:36:30 +02:00
language: go
go:
2014-12-21 21:46:06 +02:00
- tip
2014-11-16 02:22:01 +02:00
before_install:
2015-01-31 01:24:51 +02:00
- sudo add-apt-repository ppa:beineri/opt-qt54 -y
2014-11-16 02:22:01 +02:00
- sudo apt-get update -qq
2015-01-31 01:24:51 +02:00
- sudo apt-get install -yqq libgmp3-dev libreadline6-dev qt54quickcontrols qt54webengine
install:
- go get code.google.com/p/go.tools/cmd/goimports
- go get github.com/golang/lint/golint
2014-12-21 19:18:43 +02:00
# - go get golang.org/x/tools/cmd/vet
2014-12-21 20:05:59 +02:00
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
2014-11-16 16:34:28 +02:00
- go get github.com/mattn/goveralls
2015-01-31 01:24:51 +02:00
- go get -d github.com/obscuren/qml && cd $HOME/gopath/src/github.com/obscuren/qml && git checkout v1 && cd $TRAVIS_BUILD_DIR
2014-12-21 21:34:48 +02:00
- ETH_DEPS=$(go list -f '{{.Imports}} {{.TestImports}} {{.XTestImports}}' github.com/ethereum/go-ethereum/... | sed -e 's/\[//g' | sed -e 's/\]//g' | sed -e 's/C //g'); if [ "$ETH_DEPS" ]; then go get $ETH_DEPS; fi
2014-11-16 03:45:05 +02:00
before_script:
- gofmt -l -w .
- goimports -l -w .
2014-11-17 18:21:19 +02:00
- golint .
2014-11-17 18:53:24 +02:00
# - go vet ./...
2014-11-15 06:23:31 +02:00
# - go test -race ./...
2014-11-16 03:45:05 +02:00
script:
2014-12-21 22:46:32 +02:00
- ./gocoverage.sh
- if [ "$COVERALLS_TOKEN" ]; then goveralls -coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
2014-11-16 16:34:28 +02:00
env:
2015-01-31 01:24:51 +02:00
global:
- PKG_CONFIG_PATH=/opt/qt54/lib/pkgconfig
- LD_LIBRARY_PATH=/opt/qt54/lib
- secure: "U2U1AmkU4NJBgKR/uUAebQY87cNL0+1JHjnLOmmXwxYYyj5ralWb1aSuSH3qSXiT93qLBmtaUkuv9fberHVqrbAeVlztVdUsKAq7JMQH+M99iFkC9UiRMqHmtjWJ0ok4COD1sRYixxi21wb/JrMe3M1iL4QJVS61iltjHhVdM64="
2014-11-16 16:34:28 +02:00