42 lines
1.2 KiB
YAML
42 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="
|