<commit_before>format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
  envs:
  - GO15VENDOREXPERIMENT: "1"
  - GO_PROJECT_PATH: github.com/bitrise-io/bitrise-webhooks
  - PORT: "4000"
  # if set to "yes" we'll use github.com/codegangsta/gin to live-reload the code on change
  - IS_USE_GIN: "yes"
  # optionally, define these in your .bitrise.secrets.yml
  - SEND_REQUEST_TO: $SEND_REQUEST_TO

workflows:
  start:
    steps:
    - script:
        inputs:
        - content: |-
            #!/bin/bash
            set -e
            set -x
            go get github.com/tools/godep
            godep go install $GO_PROJECT_PATH
            if [ "$IS_USE_GIN" == "yes" ] ; then
              go get github.com/codegangsta/gin
              gin --godep --port $PORT
            else
              bitrise-webhooks -port $PORT
            fi

  _install_test_tools:
    steps:
    - script:
        title: "TMP: install Go 1.6.0"
        inputs:
        - content: |-
            set -x
            wget -q https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz -O go-bins.tar.gz
            tar -C /usr/local -xvzf go-bins.tar.gz
            rm go-bins.tar.gz
    - script:
        title: Install required testing tools
        run_if: .IsCI
        inputs:
        - content: |-
            #!/bin/bash
            set -e<commit_msg>CI: fail if can't install Go 1.6<commit_after>format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

app:
  envs:
  - GO15VENDOREXPERIMENT: "1"
  - GO_PROJECT_PATH: github.com/bitrise-io/bitrise-webhooks
  - PORT: "4000"
  # if set to "yes" we'll use github.com/codegangsta/gin to live-reload the code on change
  - IS_USE_GIN: "yes"
  # optionally, define these in your .bitrise.secrets.yml
  - SEND_REQUEST_TO: $SEND_REQUEST_TO

workflows:
  start:
    steps:
    - script:
        inputs:
        - content: |-
            #!/bin/bash
            set -e
            set -x
            go get github.com/tools/godep
            godep go install $GO_PROJECT_PATH
            if [ "$IS_USE_GIN" == "yes" ] ; then
              go get github.com/codegangsta/gin
              gin --godep --port $PORT
            else
              bitrise-webhooks -port $PORT
            fi

  _install_test_tools:
    steps:
    - script:
        title: "TMP: install Go 1.6.0"
        inputs:
        - content: |-
            set -x
            set -e
            wget -q https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz -O go-bins.tar.gz
            tar -C /usr/local -xvzf go-bins.tar.gz
            rm go-bins.tar.gz
    - script:
        title: Install required testing tools
        run_if: .IsCI
        inputs:
        - content: |-
            #!/bin/bash
            set -e
{'fraction_non_alphanumeric': 0.10945273631840796, 'fraction_numerical': 0.01279317697228145, 'mean_word_length': 1.57548032936871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2788560', 'n_tokens_mistral': 1012, 'n_tokens_neox': 961, 'n_words': 219}