<commit_before>language: go
go:
- 1.6
- 1.7
- tip

after_success:
  - |-
    [ "${TRAVIS_TAG}" != "" ] && [ "${TRAVIS_GO_VERSION}" == "1.7" ] && \
    GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-linux-amd64 && \
    GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-darwin-amd64 && \
    GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-windows-amd64

deploy:
  provider: releases
  skip_cleanup: true
  api_key:
    secure: <KEY>
  file:
    - tcp-paste-linux-amd64
    - tcp-paste-darwin-amd64
    - tcp-paste-windows-amd64
  on:
    repo: gregory-m/tcp-paste
    tags: true<commit_msg>Added docker image build to travis.yml<commit_after>sudo: required

services:
  - docker

language: go
go:
- 1.6
- 1.7
- tip

after_success:
  - |-
    echo $TRAVIS_TAG
    echo $TRAVIS_GO_VERSION
    if [ "$TRAVIS_TAG" != "" ] && [ "$TRAVIS_GO_VERSION" == "1.7" ]
    then
      CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-linux-amd64
      CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-darwin-amd64
      CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o tcp-paste-windows-amd64

      docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
      docker build . -t gregorym/tcp-paste:latest -t gregorym/tcp-paste:$TRAVIS_TAG
      docker push gregorym/tcp-paste
    fi
deploy:
  provider: releases
  skip_cleanup: true
  api_key:
    secure: <KEY>
  file:
    - tcp-paste-linux-amd64
    - tcp-paste-darwin-amd64
    - tcp-paste-windows-amd64
  on:
    repo: gregory-m/tcp-paste
    condition: $TRAVIS_GO_VERSION = 1.7
    tags: true
{'fraction_non_alphanumeric': 0.14595898673100122, 'fraction_numerical': 0.031966224366706875, 'mean_word_length': 2.787671232876712, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4684053', 'n_tokens_mistral': 714, 'n_tokens_neox': 668, 'n_words': 136}