<commit_before>language: go
sudo: false
go:
  - 1.7.3
  - 1.8.x
  - tip

env:
  global:
    - GOARCH=amd64
    - SEMVER=test
    - TRAVIS_NODE_VERSION=6

script:
  - make test

# Install a recent version of node && install go tools && build
before_deploy:
  - test $TRAVIS_TEST_RESULT = 0 \
    && rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION \
    && cd $TRAVIS_BUILD_DIR \
    && make installtools \
    && SEMVER=$TRAVIS_TAG make build/release

deploy:
  provider: releases
  api_key:<commit_msg>let's try this approach<commit_after>language: go
sudo: false
go:
  - 1.7.3
  - 1.8.x
  - tip

env:
  global:
    - GOARCH=amd64
    - SEMVER=test
    - TRAVIS_NODE_VERSION=6

script:
  - make test

# Install a recent version of node && install go tools && build
before_deploy:
  - echo "$TRAVIS_TEST_RESULT"
  - if [ "$TRAVIS_TEST_RESULT" != 0 ]; then echo "Test result is not 0 -- bailing out"; exit 1; fi
  - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION \
    && cd $TRAVIS_BUILD_DIR \
    && make installtools \
    && SEMVER=$TRAVIS_TAG make build/release

deploy:
  provider: releases
  api_key:
{'fraction_non_alphanumeric': 0.1433666191155492, 'fraction_numerical': 0.015691868758915834, 'mean_word_length': 2.8333333333333335, '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': '4346419', 'n_tokens_mistral': 548, 'n_tokens_neox': 518, 'n_words': 138}