<commit_before>language: go

go:
  - 1.6.x
  - 1.7.x
  - 1.8.x
  - 1.9.x
  - "1.10.x"
  - master

matrix:
  # Build OK if fails on unstable development versions of Go.
  allow_failures:
    - go: master
  # Don't wait for tests to finish on allow_failures.
  # Mark the build finished if tests pass on other versions of Go.
  fast_finish: true

go_import_path: firebase.google.com/go

before_install:
    - go get github.com/golang/lint/golint # Golint requires Go 1.6 or later.

install:
    # Prior to golang 1.8, this can trigger an error for packages containing only tests.
    - go get -t -v $(go list ./... | grep -v integration)

script:
    - golint -set_exit_status $(go list ./...)
    - ./.travis.gofmt.sh
    - go test -v -race -test.short ./...        # Run tests with the race detector.
    - go vet -v ./...                           # Run Go static analyzer.<commit_msg>Removing golint checks from 1.6.x build (#141)<commit_after>language: go

go:
  - 1.6.x
  - 1.7.x
  - 1.8.x
  - 1.9.x
  - "1.10.x"
  - master

matrix:
  # Build OK if fails on unstable development versions of Go.
  allow_failures:
    - go: master
  # Don't wait for tests to finish on allow_failures.
  # Mark the build finished if tests pass on other versions of Go.
  fast_finish: true

go_import_path: firebase.google.com/go

before_install:
    # Golint requires Go 1.7 or later.
    - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then go get github.com/golang/lint/golint; fi

install:
    # Prior to golang 1.8, this can trigger an error for packages containing only tests.
    - go get -t -v $(go list ./... | grep -v integration)

script:
    - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then golint -set_exit_status $(go list ./...); fi
    - ./.travis.gofmt.sh
    - go test -v -race -test.short ./...        # Run tests with the race detector.
    - go vet -v ./...                           # Run Go static analyzer.
{'fraction_non_alphanumeric': 0.1332296526697771, 'fraction_numerical': 0.022291342664593053, 'mean_word_length': 2.058637083993661, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2910849', 'n_tokens_mistral': 712, 'n_tokens_neox': 674, 'n_words': 225}