<commit_before>language: go
dist: trusty

env:
  # COVERALLS_TOKEN
  secure: "<KEY>

go:
  - 1.7
  - 1.8
  - tip

addons:
  apt:
    packages:
      libusb-1.0-0-dev

install:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls

script:
  # a workaround for go test not supporting coverage for multiple packages in a single invocation
  - |-
    echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -covermode=count -coverprofile=coverage.tmp -test.run="BCD|Parse" {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp
  - $HOME/gopath/bin/goveralls -coverprofile=coverage.merged -service=travis-ci -repotoken $COVERALLS_TOKEN<commit_msg>Run all tests. I'll mark the always-failing tests as skipped.<commit_after>language: go
dist: trusty

env:
  # COVERALLS_TOKEN
  secure: "<KEY>

go:
  - 1.7
  - 1.8
  - tip

addons:
  apt:
    packages:
      libusb-1.0-0-dev

install:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls

script:
  # a workaround for go test not supporting coverage for multiple packages in a single invocation
  - |-
    echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp
  - $HOME/gopath/bin/goveralls -coverprofile=coverage.merged -service=travis-ci -repotoken $COVERALLS_TOKEN
{'fraction_non_alphanumeric': 0.13458950201884254, 'fraction_numerical': 0.012113055181695828, 'mean_word_length': 3.0851648351648353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3158071', 'n_tokens_mistral': 555, 'n_tokens_neox': 540, 'n_words': 143}