<commit_before>branches:
  only:
    - develop
    - master

language: go
go:
- 1.2
- 1.3
- 1.4
- tip
matrix:
  allow_failures:
    - go: 1.2
    - go: 1.3
    - go: tip

before_install:
- 'if [[ "${TRAVIS_GO_VERSION}" =~ 1.[2-3] ]]; then go get code.google.com/p/go.tools/cmd/cover; else go get golang.org/x/tools/cmd/cover; fi'
- go get -v github.com/tools/godep
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/mattn/goveralls
after_success:
- pushd ltc
- 'echo "mode: set" > coverage.out'
- 'find . -name "*.coverprofile" -exec grep -v mode: {} >> coverage.out \;'
- PATH=$HOME/gopath/bin:$PATH goveralls -coverprofile=coverage.out -repotoken=$COVERALLS_TOKEN
- popd

install:
- pushd ltc
- PATH=$HOME/gopath/bin:$PATH godep restore
- popd

script:
- pushd ltc
- PATH=$HOME/gopath/bin:$PATH ginkgo -r --race --randomizeAllSpecs --failOnPending --skipMeasurements --cover
- test -z "$(go fmt ./...)"
- popd<commit_msg>Manually `go get` aws/aws-sdk-go package on TravisCI<commit_after>branches:
  only:
    - develop
    - master

language: go
go:
- 1.2
- 1.3
- 1.4
- tip
matrix:
  allow_failures:
    - go: 1.2
    - go: 1.3
    - go: tip

before_install:
- 'if [[ "${TRAVIS_GO_VERSION}" =~ 1.[2-3] ]]; then go get code.google.com/p/go.tools/cmd/cover; else go get golang.org/x/tools/cmd/cover; fi'
- go get -v github.com/tools/godep
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/mattn/goveralls
after_success:
- pushd ltc
- 'echo "mode: set" > coverage.out'
- 'find . -name "*.coverprofile" -exec grep -v mode: {} >> coverage.out \;'
- PATH=$HOME/gopath/bin:$PATH goveralls -coverprofile=coverage.out -repotoken=$COVERALLS_TOKEN
- popd

install:
- pushd ltc
- go get -v -d ./... || true		## FIXME
- pushd $GOPATH/src/github.com/aws/aws-sdk-go
- git checkout v0.7.0
- popd
- PATH=$HOME/gopath/bin:$PATH godep restore
- popd

script:
- pushd ltc
- PATH=$HOME/gopath/bin:$PATH ginkgo -r --race --randomizeAllSpecs --failOnPending --skipMeasurements --cover
- test -z "$(go fmt ./...)"
- popd
{'fraction_non_alphanumeric': 0.17464232856438086, 'fraction_numerical': 0.014306857424765663, 'mean_word_length': 2.840909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6013327', 'n_tokens_mistral': 863, 'n_tokens_neox': 826, 'n_words': 191}