<commit_before>---
language: go
sudo: false
notifications:
  email: false
matrix:
  include:
    - os: linux
      go: 1.7.x
    - os: linux
      go: 1.8.x
    - os: linux
      go: tip
    - os: osx
      go: 1.8.x
install:
  - echo "This is an override of the default install deps step in travis."
before_script:
  # OSX as of El Capitan sets an exit trap that interacts poorly with our
  # set -e below. So, unset the trap.
  # Related: https://superuser.com/questions/1044130/why-am-i-having-how-can-i-fix-this-error-shell-session-update-command-not-f
  - if [[ "$(go env GOHOSTOS)" == "darwin" ]]; then trap EXIT; fi
  - PKGS=$(go list ./... | grep -v /vendor/)
  - go get -v honnef.co/go/tools/cmd/{gosimple,staticcheck}
  - npm install -g codeclimate-test-reporter
script:
  - go build -v ./cmd/dep
  - go vet $PKGS
  # TODO (kris-nova) remove the ignore flag once we can refactor the code causing problems
  - staticcheck -ignore='github.com/golang/dep/cmd/dep/status.go:SA4010' $PKGS
  - ./hack/validate-gofmt.bash
  - ./hack/validate-vendor.bash
  - gosimple $PKGS
  #- go test -race $PKGS
  - go build ./hack/licenseok
  - set -e; for pkg in $PKGS; do go test -race -coverprofile=profile.out -covermode=atomic $pkg; if [[ -f profile.out ]]; then cat profile.out >> coverage.txt; rm profile.out; fi; done
  - find . -path ./vendor -prune -o -type f -name "*.go" -printf '%P\n' | xargs ./licenseok
  - ./hack/validate-vendor.bash<commit_msg>Ignore test data directory<commit_after>---
language: go
sudo: false
notifications:
  email: false
matrix:
  include:
    - os: linux
      go: 1.7.x
    - os: linux
      go: 1.8.x
    - os: linux
      go: tip
    - os: osx
      go: 1.8.x
install:
  - echo "This is an override of the default install deps step in travis."
before_script:
  # OSX as of El Capitan sets an exit trap that interacts poorly with our
  # set -e below. So, unset the trap.
  # Related: https://superuser.com/questions/1044130/why-am-i-having-how-can-i-fix-this-error-shell-session-update-command-not-f
  - if [[ "$(go env GOHOSTOS)" == "darwin" ]]; then trap EXIT; fi
  - PKGS=$(go list ./... | grep -v /vendor/ | grep -v _testdata/ )
  - go get -v honnef.co/go/tools/cmd/{gosimple,staticcheck}
  - npm install -g codeclimate-test-reporter
script:
  - go build -v ./cmd/dep
  - go vet $PKGS
  # TODO (kris-nova) remove the ignore flag once we can refactor the code causing problems
  - staticcheck -ignore='github.com/golang/dep/cmd/dep/status.go:SA4010' $PKGS
  - ./hack/validate-gofmt.bash
  - ./hack/validate-vendor.bash
  - gosimple $PKGS
  #- go test -race $PKGS
  - go build ./hack/licenseok
  - set -e; for pkg in $PKGS; do go test -race -coverprofile=profile.out -covermode=atomic $pkg; if [[ -f profile.out ]]; then cat profile.out >> coverage.txt; rm profile.out; fi; done
  - find . -path ./vendor -prune -o -type f -name "*.go" -printf '%P\n' | xargs ./licenseok
  - ./hack/validate-vendor.bash
{'fraction_non_alphanumeric': 0.14606741573033707, 'fraction_numerical': 0.011576438542730678, 'mean_word_length': 2.5960832313341493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6903087', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1066, 'n_words': 325}