k3s/vendor/github.com/mistifyio/go-zfs/.travis.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2019-08-30 18:33:25 +00:00
language: go
sudo: required
dist: trusty
cache:
directories:
- $HOME/.ccache
branches:
only:
- master
env:
- rel=0.6.5.11
- rel=0.7.3
go:
- 1.9
- tip
before_install:
- export MAKEFLAGS=-j$(($(grep -c '^processor' /proc/cpuinfo) * 2 + 1))
- export PATH=/usr/lib/ccache:$PATH
- go get github.com/alecthomas/gometalinter
- gometalinter --install --update
- sudo apt-get update -y && sudo apt-get install -y libattr1-dev libblkid-dev linux-headers-$(uname -r) tree uuid-dev
- 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 --vendor --vendored-linters ./... || true
- gometalinter --errors --vendor --vendored-linters ./...
notifications:
email: false
irc: "chat.freenode.net#cerana"