<commit_before>language: go
go:
- 1.8.1
cache:
  directories:
  - "$HOME/google-cloud-sdk/"
before_install:
- if [ ! -f "$HOME/google-cloud-sdk/bin/gcloud" ]; then curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz
  && tar -x -C $HOME -f google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz; fi
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud --quiet components install app-engine-go
- gcloud --quiet components install app-engine-python
- gcloud --quiet components update --version $GCLOUD_VERSION
install:
- go get -t -d -v ./...
script:
- go test -coverprofile=coverage.txt -covermode=count
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- echo $STAGING_APP_YAML | base64 -d > staging.app.yaml
- echo $TRAVIS_CI_SERVICE_ACCOUNT | base64 -d > travis-ci-service-account.json
deploy:
  provider: gae
  skip_cleanup: true
  project: bus-eta-bot
  keyfile: travis-ci-service-account.json
  config: staging.app.yaml
  on:
    condition: -n "$TRAVIS_CI_SERVICE_ACCOUNT" && -n "$STAGING_APP_YAML"
env:
- GCLOUD_VERSION=156.0.0<commit_msg>Add CD into production on tag<commit_after>language: go
go:
- 1.8.1
cache:
  directories:
  - "$HOME/google-cloud-sdk/"
before_install:
- if [ ! -f "$HOME/google-cloud-sdk/bin/gcloud" ]; then curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz
  && tar -x -C $HOME -f google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz; fi
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud --quiet components install app-engine-go
- gcloud --quiet components install app-engine-python
- gcloud --quiet components update --version $GCLOUD_VERSION
install:
- go get -t -d -v ./...
script:
- go test -coverprofile=coverage.txt -covermode=count
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- echo $STAGING_APP_YAML | base64 -d > staging.app.yaml
- echo $TRAVIS_CI_SERVICE_ACCOUNT | base64 -d > travis-ci-service-account.json
deploy:
  - provider: gae
    skip_cleanup: true
    project: bus-eta-bot
    keyfile: travis-ci-service-account.json
    config: staging.app.yaml
    on:
      condition: -n "$TRAVIS_CI_SERVICE_ACCOUNT" && -n "$STAGING_APP_YAML"
  - provider: gae
    skip_cleanup: true
    project: bus-eta-bot
    keyfile: travis-ci-service-account.json
    config: prod.app.yaml
    on:
      condition: -n "$TRAVIS_CI_SERVICE_ACCOUNT" && -n "$PROD_APP_YAML"
      tags: true
env:
- GCLOUD_VERSION=156.0.0
{'fraction_non_alphanumeric': 0.1437031188314252, 'fraction_numerical': 0.015791551519936834, 'mean_word_length': 3.5330948121645798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '3038152', 'n_tokens_mistral': 988, 'n_tokens_neox': 957, 'n_words': 194}