-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (35 loc) · 1.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: go
sudo: required
dist: trusty
# Versions of Go and deps in the build matrix should test the current in use by
# mistify-os and the latest release.
env:
- V_ZFS=0.6.5.5
go:
- 1.5.2
- 1.6
before_install:
- sudo apt-get -qq update
- go get github.com/alecthomas/gometalinter
- gometalinter --install --update
install:
- sudo apt-get install -y --force-yes autoconf dh-autoreconf zlib1g-dev linux-headers-$(uname -r) uuid-dev tree
- cd $HOME
- curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$V_ZFS/spl-$V_ZFS.tar.gz | tar xz
- git clone https://github.com/ClusterHQ/zfs -b libzfs_core-HEAD && (cd zfs && git checkout 2c9b2d6bf312d0ffb4a14c0570fcb8150196a9be)
- MAKEFLAGS=-j$(($(grep -c '^processor' /proc/cpuinfo) * 2 + 1))
- (cd spl-$V_ZFS && ./configure --prefix=/usr && make && sudo make install)
- (cd zfs && ./autogen.sh && ./configure --prefix=/usr --with-spl=/usr/src/spl-$V_ZFS && make && sudo make install)
- sudo modprobe zfs
- cd $TRAVIS_BUILD_DIR
- go get -t -v ./...
before_script:
- gometalinter --disable-all --enable=goimports --enable=errcheck --enable=vet --enable=gofmt --enable=golint --enable=vetshadow --deadline=30s -j $(($(nproc) + 1)) ./...
script:
- make test
after_success:
- gometalinter --disable=errcheck --disable=vet --disable=gofmt --disable=golint --disable=vetshadow --deadline=30s -j $(($(nproc) + 1)) ./...
notifications:
email: false
slack:
secure: "XjyWq5wFfjdt21rajPWSrS8xq0MKFbdxZhb/UsJAhnbAIl2wwb/ftxRxu923languwZdJtMIOmDProZQ7hIzwWr1CZu0Luk/FHgJazgrE4j2XvNLCeYOYrIpdh5ZfCQ+oRchyTXAxmSwgK1z5/xqlOa+qSDJm11yA/AXPCHzaRM="