<commit_before>language: go

go:
- 1.5.3
- 1.6
#- tip # NOTE: disabled - see https://github.com/travis-ci/gimme/issues/38

before_install:
- openssl aes-256-cbc -K $encrypted_e44ee91b46d4_key -iv $encrypted_e44ee91b46d4_iv -in key.json.enc -out key.json -d

install:
- go get -t -v ./...
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint

script:
- GOOGLE_APPLICATION_CREDENTIALS="$(pwd)/key.json"
  GOLANG_SAMPLES_PROJECT_ID=golang-samples-tests
  go test -v ./...
- go vet ./...
- GOFMT=$(gofmt -d -s .) && echo $GOFMT && test -z "$GOFMT"<commit_msg>travis: don't run system tests for pull requests<commit_after>language: go

go:
- 1.5.3
- 1.6
#- tip # NOTE: disabled - see https://github.com/travis-ci/gimme/issues/38

before_install:
- if [ $SYSTEM_TESTS ]; then
    openssl aes-256-cbc -K $encrypted_e44ee91b46d4_key -iv $encrypted_e44ee91b46d4_iv -in key.json.enc -out key.json -d;
    export GOLANG_SAMPLES_PROJECT_ID=golang-samples-tests;
    export GOOGLE_APPLICATION_CREDENTIALS="$(pwd)/key.json";
  else
    echo "Not running system tests.";
  fi

install:
- go get -t -v ./...
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint

script:
- go test -v ./...
- go vet ./...
- GOFMT=$(gofmt -d -s .) && echo $GOFMT && test -z "$GOFMT"
{'fraction_non_alphanumeric': 0.16498838109992253, 'fraction_numerical': 0.037180480247869865, 'mean_word_length': 3.0249221183800623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3767992', 'n_tokens_mistral': 580, 'n_tokens_neox': 538, 'n_words': 116}