<commit_before>sudo: required
dist: trusty
services:
  - docker

language: go

go:
  - 1.7

os:
  - linux
  - osx

env:
  matrix:
    - TARGETS="check"
    - TARGETS="testsuite"

  global:
    # Cross-compile for amd64 only to speed up testing.
    - GOX_FLAGS="-arch amd64"

addons:
  apt:
    packages:
      - python-virtualenv

before_install:
  # Redo the travis setup but with the elastic/libbeat path. This is needed so the package path is correct
  - mkdir -p $HOME/gopath/src/github.com/joshuar/pingbeat/
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/joshuar/pingbeat/
  - export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/joshuar/pingbeat/
  - cd $HOME/gopath/src/github.com/joshuar/pingbeat/

install:
  - true

script:
  - make $TARGETS

after_success:
  # Copy full.cov to coverage.txt because codecov.io requires this file<commit_msg>Install glide for travis.<commit_after>sudo: required
dist: trusty
services:
  - docker

language: go

go:
  - 1.7

os:
  - linux
  - osx

env:
  matrix:
    - TARGETS="check"
    - TARGETS="testsuite"

  global:
    # Cross-compile for amd64 only to speed up testing.
    - GOX_FLAGS="-arch amd64"

addons:
  apt:
    packages:
      - python-virtualenv

before_install:
  # Redo the travis setup but with the elastic/libbeat path. This is needed so the package path is correct
  - mkdir -p $HOME/gopath/src/github.com/joshuar/pingbeat/
  - rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/github.com/joshuar/pingbeat/
  - export TRAVIS_BUILD_DIR=$HOME/gopath/src/github.com/joshuar/pingbeat/
  - cd $HOME/gopath/src/github.com/joshuar/pingbeat/

install:
  - go get -v github.com/Masterminds/glide
  - cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/0.12.3 && go install && cd -
  - glide install

script:
  - make $TARGETS

after_success:
  # Copy full.cov to coverage.txt because codecov.io requires this file
{'fraction_non_alphanumeric': 0.11234177215189874, 'fraction_numerical': 0.008438818565400843, 'mean_word_length': 3.0276008492569004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2672049', 'n_tokens_mistral': 725, 'n_tokens_neox': 703, 'n_words': 169}