<commit_before>language: go

go:
  - 1.5
  - 1.9
  - master

script:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - go test -v -covermode=count -coverprofile=coverage.out
  - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN

before_deploy:
  - cd cmd/cortexbot
  - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-amd64
  - CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-386
  - CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-x86.exe
  - CGO_ENABLED=0 GOOS=darwin go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-mac

deploy:
  provider: releases
  api_key: $GITHUB_TOKEN
  skip_cleanup: true
  file:
    - cortexbot-amd64
    - cortexbot-386
    - cortexbot-x86.exe
    - cortexbot-mac
  on:
    repo: ilyaglow/cortex-tgbot
    tags: true
    condition: $TRAVIS_GO_VERSION = master<commit_msg>Update travis, deprecate Go version <1.9<commit_after>language: go

go:
  - 1.9
  - "1.10"
  - master

script:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - go test -v -covermode=count -coverprofile=coverage.out
  - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken=$COVERALLS_TOKEN

before_deploy:
  - cd cmd/cortexbot
  - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-amd64
  - CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-386
  - CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-x86.exe
  - CGO_ENABLED=0 GOOS=darwin go build -ldflags="-s -w" -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH" -a -installsuffix cgo -o cortexbot-mac

deploy:
  provider: releases
  api_key: $GITHUB_TOKEN
  skip_cleanup: true
  file:
    - cortexbot-amd64
    - cortexbot-386
    - cortexbot-x86.exe
    - cortexbot-mac
  on:
    repo: ilyaglow/cortex-tgbot
    tags: true
    condition: $TRAVIS_GO_VERSION = "1.10"
{'fraction_non_alphanumeric': 0.14073494917904614, 'fraction_numerical': 0.02580140734949179, 'mean_word_length': 3.6697080291970803, 'pattern_counts': {'":': 0, '<': 4, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1393796', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1017, 'n_words': 204}