<commit_before>language: go
sudo: required
dist: trusty

go:
  - 1.5

before_install:
  - version=0.6.5
  - sudo apt-get update -y && sudo apt-get install -y linux-headers-$(uname -r) uuid-dev tree
  - cd $HOME
  - curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$version/spl-$version.tar.gz | tar xz
  - curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$version/zfs-$version.tar.gz | tar xz
  - JOBS=$(($(grep -c '^processor' /proc/cpuinfo) * 2 + 1))
  - cd spl-$version
  - ./configure --prefix=/usr && make -j$JOBS && sudo make install
  - cd ../zfs-$version
  - curl -L https://github.com/zfsonlinux/zfs/pull/3907.patch | patch -p1
  - curl -L https://github.com/ClusterHQ/zfs/pull/13.patch | patch -p1
  - ./configure --prefix=/usr && make -j$JOBS && sudo make install
  - sudo modprobe zfs
  - cd $TRAVIS_BUILD_DIR
  - go get github.com/alecthomas/gometalinter
  - gometalinter --install --update

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: "TQPVgIACp8DpTwMT2REtx2+3qBD9hb2xZ+Wz5yM21wlLO48ut3xSQBSOCktyYn5Nifgoc1BewOM0HrFTkfB0hoaxbAMPos1KXqUvP9oHrZfKEDlOG2Vz9Nacogp7P5TmZn/7ywWKRzfTRs8Y5YQ3Rlgn5I8b2gH+cOVKAdwjXvVmgOKEuxe5oXZTzEfys4ghzWYalmrttu8zuxxrI6VP1stb4gYmDLlTNRzmlz7p4DX4OWCuCf5NiUzx+EsZ3UIOp5UDYG7tWyXNU1BJfbqM+XQOu4B7J2XGvcun9kukxzAcDGEEffGf/bxKSBsvDQl96RX/aTFeSDmGFxFobNqbpLJRTRNUb/ajnyv8uft739CFgjefN95tiql3fJ7otnQmcoLdu/e0PxumWXJGXvJTiD1WbHHITBajxaKfUkZNJkoHJUv+5rh6zuCt/miMxH77Q4ZtM8GORFZnok4c5OGNWY6VIJCNhnQiM/iuNErCudviM6SPTtZBwZKwYbUGWykiTv0VeOX3igDALE1GcIeV8iGZPCe0rpORHpFssmB9Svk1tCaxqHxjB8Q87w4+aaADFL43joH3eysOofdmgNSAWye7FiRqmowMjO5tLF8cxL06pVpglwWj1yewEkmpQiz8YfaNPSbgGEhcGmoz5mdFsN1zNBGtG236rfv6LU99hHM="<commit_msg>update travis script to clone ClusterHQ/libzfs_core-HEAD branch<commit_after>language: go
sudo: required
dist: trusty

go:
  - 1.5

before_install:
  - version=0.6.5
  - sudo apt-get update -y && sudo apt-get install -y linux-headers-$(uname -r) uuid-dev tree
  - cd $HOME
  - curl -L https://github.com/zfsonlinux/zfs/releases/download/zfs-$version/spl-$version.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-$version && ./configure --prefix=/usr && make && sudo make install)
  - (cd zfs && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install)
  - sudo modprobe zfs
  - cd $TRAVIS_BUILD_DIR
  - go get github.com/alecthomas/gometalinter
  - gometalinter --install --update

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: "<KEY>
{'fraction_non_alphanumeric': 0.13585526315789473, 'fraction_numerical': 0.04703947368421053, 'mean_word_length': 3.9286871961102108, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7001944', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1381, 'n_words': 203}