6c9628cdb1
* Rename 'vendor/src' -> 'vendor' * Ignore vendor/ instead of vendor/src/ for lint * Rename 'cmd/client' -> 'cmd/ocic' to make it 'go install'able * Rename 'cmd/server' -> 'cmd/ocid' to make it 'go install'able * Update Makefile to build and install from GOPATH * Update tests to locate ocid/ocic in GOPATH/bin * Search for binaries in GOPATH/bin instead of PATH * Install tools using `go get -u`, so they are updated on each run Signed-off-by: Jonathan Yu <jawnsy@redhat.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
language: go
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
env:
|
|
- rel=0.6.4.2
|
|
- rel=0.6.5.4
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- env: rel=0.6.5.4
|
|
|
|
go:
|
|
- 1.7
|
|
|
|
before_install:
|
|
- go get github.com/alecthomas/gometalinter
|
|
- gometalinter --install --update
|
|
- MAKEFLAGS=-j$(($(grep -c '^processor' /proc/cpuinfo) * 2 + 1))
|
|
- sudo apt-get update -y && sudo apt-get install -y linux-headers-$(uname -r) uuid-dev tree
|
|
- cd /tmp
|
|
- curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$rel/spl-$rel.tar.gz | tar xz
|
|
- curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$rel/zfs-$rel.tar.gz | tar xz
|
|
- (cd spl-$rel && ./configure --prefix=/usr && make && sudo make install)
|
|
- (cd zfs-$rel && ./configure --prefix=/usr && make && sudo make install)
|
|
- sudo modprobe zfs
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
script:
|
|
- sudo -E $(which go) test -v ./...
|
|
- gometalinter --disable=golint --disable=vetshadow --enable=gofmt ./... || true
|
|
- gometalinter --disable-all --enable=golint --enable=vetshadow ./... || true
|
|
|
|
notifications:
|
|
email: false
|
|
slack:
|
|
secure: "AbDJNjWyf/z+neX0HtoIUynjBcdvbhrsuyzoeaImZaanUtyo3cWNpA1M+5CApDQneaKbLqcehDBTjaLQD1fjXXtWrNvq+FgCRDJ1gvZasq13iJfYe3qtLz7n0YGHqEGzZ1lsheWtle/Sg32RlPAUZrHKWPciu7/Fg1k1ca8FsB4="
|