<commit_before>language: go

go:
  - 1.4

install:
  # tools
  - make tools

  # project
  - make dependencies
  - make install

script:
  # linting
  - export GOFMT=$(gofmt -l .)
  - echo "$GOFMT"
  - $(exit $(echo "$GOFMT" | wc -l))
  - export GOERRCHECK=$(errcheck github.com/zimmski/tavor/...)
  - echo "$GOERRCHECK"
  - $(exit $(echo "$GOERRCHECK" | wc -l))
  - export GOVET=$(go tool vet -all=true -v=true . 2>&1 | grep --invert-match -P "(Checking file|\%p of wrong type|can't check non-constant format)")
  - echo "$GOVET"
  - $(exit $(echo "$GOVET" | wc -l))
  - export GOLINT=$(golint ./... | grep --invert-match -P "(_string.go:)")
  - echo "$GOLINT"
  - $(exit $(echo "$GOLINT" | wc -l))

  # project
  - make testverbose

  # code coverage
  - ginkgo -r -cover -skipPackage="testdata"
  - gover
  - if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

env:
  # coveralls.io
  secure: "CPuDl59GuLvd8BFbJwuy2mynpN4e9l2LAPF42yaf8b9HQIYQPrSeycqQAIDPQgKhk4x3/FbX1JrvieTP/P2hx+alxJv6tvEvh/aGg91h/dgLpUHiIvBQfa7viUKZrxkER3pQg30Ql2fMJOz8gKPWyB0mNvm5Eh4ysdjJmILTGuM="<commit_msg>try to fix build errors<commit_after>language: go

go:
  - 1.4

install:
  # tools
  - make tools

  # project
  - make dependencies
  - make install

script:
  # project
  - make testverbose

  # linting
  - export GOFMT=$(gofmt -l .)
  - echo "$GOFMT"
  - $(exit $(echo -n "$GOFMT" | wc -l))
  - export GOERRCHECK=$(errcheck github.com/zimmski/tavor/...)
  - echo "$GOERRCHECK"
  - $(exit $(echo -n "$GOERRCHECK" | wc -l))
  - export GOVET=$(go tool vet -all=true -v=true . 2>&1 | grep --invert-match -P "(Checking file|\%p of wrong type|can't check non-constant format)")
  - echo "$GOVET"
  - $(exit $(echo -n "$GOVET" | wc -l))
  - export GOLINT=$(golint ./... | grep --invert-match -P "(_string.go:)")
  - echo "$GOLINT"
  - $(exit $(echo -n "$GOLINT" | wc -l))

  # code coverage
  - ginkgo -r -cover -skipPackage="testdata"
  - gover
  - if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN; fi

env:
  # coveralls.io
  secure: "<KEY>
{'fraction_non_alphanumeric': 0.17045454545454544, 'fraction_numerical': 0.015909090909090907, 'mean_word_length': 3.145009416195857, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '6380326', 'n_tokens_mistral': 962, 'n_tokens_neox': 932, 'n_words': 201}