<commit_before>---
#
# ci/pipeline.yml
#
# Pipeline structure file for a Go Project pipeline
#
# DO NOT MAKE CHANGES TO THIS FILE.  Instead, modify
# ci/settings.yml and override what needs overridden.
# This uses spruce, so you have some options there.
#
# author:  <NAME> <<EMAIL>>
# created: 2016-03-30

meta:
  name:     (( param "Please name your pipeline" ))
  release:  (( concat meta.name " Release" ))
  target:   (( param "Please identify the name of the target Concourse CI" ))
  pipeline: (( grab meta.name ))

  image:    (( concat "docker:///starkandwayne/concourse-go#" meta.go.version ))

  go:
    version: 1.5
    module:  (( concat "github.com/" meta.github.owner "/" meta.github.repo ))
    cmd_module: (( grab meta.go.module ))
    binary:  (( grab meta.github.repo ))

  aws:
    bucket:     (( concat meta.name "-pipeline" ))
    access_key: (( param "Please set your AWS Access Key ID" ))
    secret_key: (( param "Please set your AWS Secret Key ID" ))

  github:
    uri:          (( concat "<EMAIL>:" meta.github.owner "/" meta.github.repo ))
    owner:        (( param "Please specify the name of the user / organization that owns the Github repository" ))
    repo:         (( param "Please specify the name of the Github repository" ))
    branch:       master
    private_key:  (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
    access_token: (( param "Please generate a Personal Access Token and specify it here" ))

  slack:
    webhook:       (( param "Please specify your Slack Incoming Webhook Integration URL" ))
    notification: '(( concat ":sadpanda: " meta.name " build failed!<br>URL-GOES-HERE" ))'
    channel:       (( param "Please specify the channel (#name) or user (@user) to send messages to" ))
    username:      concourse
    icon:          http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png

  cf:
    app:
      name: (( param "Specify the name of the app to push" ))
      domain: (( param "Specify the domain to push the app under" ))
    org: (( param "Specify the CF org that the app will live in" ))
    space: (( param "Specify the CF space that the app will live in" ))
    user: (( param "Specify the CF User that will deploy the app" ))
    password: (( param "Specify the password for the user deploying the app" ))
    url: (( param "Specify the URL to the CF api" ))

  homebrew:
    recipe: (( param "Specify the homebrew recipe to update" ))

groups:
  - name: (( grab meta.name ))
    jobs:
      - test
      - rc
      - shipit
      - major
      - minor
      - bump-patch
      - (( grab meta.cf.app.name ))
      - update-homebrew

jobs:
  - name: test
    public: true
    serial: true
    plan:
      - { get: git, trigger: true }
      - task: test
        config:
          platform: linux
          image: (( grab meta.image ))
          inputs:
            - name: git
              path: (( concat "gopath/src/" meta.go.module ))
          run:
            path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/test" ))
            args: []
          params:
            MODULE: (( grab meta.go.module ))

  - name: rc
    public: true
    plan:
      - aggregate:
          - { get: git,     trigger: true,  passed: [test] }
          - { get: version, trigger: false, params: {pre: rc} }
      - put: version
        params: {file: version/number}

  - name: minor
    public: true
    plan:
      - { get: version, trigger: false, params: {bump: minor} }
      - { put: version,                 params: {file: version/number} }

  - name: major
    public: true
    plan:
      - { get: version, trigger: false, params: {bump: major} }
      - { put: version,                 params: {file: version/number} }

  - name: bump-patch
    public: true
    plan:
    - { get: version, trigger: true, params: { bump: minor}, passed: [shipit] }

  - name: shipit
    public: true
    serial: true
    plan:
      - aggregate:
          - { get: version, passed: [rc], params: {bump: final} }
          - { get: git,     passed: [rc] }
      - task: release
        config:
          image: (( grab meta.image ))
          platform: linux
          inputs:
            - name: version
            - name: git
              path: (( concat "gopath/src/" meta.go.module ))
          outputs:
            - name: gh
            - name: pushme
          run:
            path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/shipit" ))
            args: []
          params:
            BINARY:       (( grab meta.go.binary ))
            REPO_ROOT:    (( concat "gopath/src/" meta.go.module ))
            VERSION_FROM: version/number
            RELEASE_NAME: (( grab meta.release ))
            RELEASE_ROOT: gh
            REPO_OUT:     pushme
            BRANCH:       (( grab meta.github.branch ))
            CMD_PKG:      (( grab meta.go.cmd_module ))

      - aggregate:
        - put: version
        - put: git
          params:
            rebase: true
            repository: pushme/git
        - put: github
          params:
            name:   gh/name<commit_msg>No really, Fixing version handling in CI for homebrew<commit_after>---
#
# ci/pipeline.yml
#
# Pipeline structure file for a Go Project pipeline
#
# DO NOT MAKE CHANGES TO THIS FILE.  Instead, modify
# ci/settings.yml and override what needs overridden.
# This uses spruce, so you have some options there.
#
# author:  <NAME> <<EMAIL>>
# created: 2016-03-30

meta:
  name:     (( param "Please name your pipeline" ))
  release:  (( concat meta.name " Release" ))
  target:   (( param "Please identify the name of the target Concourse CI" ))
  pipeline: (( grab meta.name ))

  image:    (( concat "docker:///starkandwayne/concourse-go#" meta.go.version ))

  go:
    version: 1.5
    module:  (( concat "github.com/" meta.github.owner "/" meta.github.repo ))
    cmd_module: (( grab meta.go.module ))
    binary:  (( grab meta.github.repo ))

  aws:
    bucket:     (( concat meta.name "-pipeline" ))
    access_key: (( param "Please set your AWS Access Key ID" ))
    secret_key: (( param "Please set your AWS Secret Key ID" ))

  github:
    uri:          (( concat "<EMAIL>:" meta.github.owner "/" meta.github.repo ))
    owner:        (( param "Please specify the name of the user / organization that owns the Github repository" ))
    repo:         (( param "Please specify the name of the Github repository" ))
    branch:       master
    private_key:  (( param "Please generate an SSH Deployment Key for this repo and specify it here" ))
    access_token: (( param "Please generate a Personal Access Token and specify it here" ))

  slack:
    webhook:       (( param "Please specify your Slack Incoming Webhook Integration URL" ))
    notification: '(( concat ":sadpanda: " meta.name " build failed!<br>URL-GOES-HERE" ))'
    channel:       (( param "Please specify the channel (#name) or user (@user) to send messages to" ))
    username:      concourse
    icon:          http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png

  cf:
    app:
      name: (( param "Specify the name of the app to push" ))
      domain: (( param "Specify the domain to push the app under" ))
    org: (( param "Specify the CF org that the app will live in" ))
    space: (( param "Specify the CF space that the app will live in" ))
    user: (( param "Specify the CF User that will deploy the app" ))
    password: (( param "Specify the password for the user deploying the app" ))
    url: (( param "Specify the URL to the CF api" ))

  homebrew:
    recipe: (( param "Specify the homebrew recipe to update" ))

groups:
  - name: (( grab meta.name ))
    jobs:
      - test
      - rc
      - shipit
      - major
      - minor
      - bump-patch
      - (( grab meta.cf.app.name ))
      - update-homebrew

jobs:
  - name: test
    public: true
    serial: true
    plan:
      - { get: git, trigger: true }
      - task: test
        config:
          platform: linux
          image: (( grab meta.image ))
          inputs:
            - name: git
              path: (( concat "gopath/src/" meta.go.module ))
          run:
            path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/test" ))
            args: []
          params:
            MODULE: (( grab meta.go.module ))

  - name: rc
    public: true
    plan:
      - aggregate:
          - { get: git,     trigger: true,  passed: [test] }
          - { get: version, trigger: false, params: {pre: rc} }
      - put: version
        params: {file: version/number}

  - name: minor
    public: true
    plan:
      - { get: version, trigger: false, params: {bump: minor} }
      - { put: version,                 params: {file: version/number} }

  - name: major
    public: true
    plan:
      - { get: version, trigger: false, params: {bump: major} }
      - { put: version,                 params: {file: version/number} }

  - name: bump-patch
    public: true
    plan:
    - { get: version, trigger: true, params: { bump: patch}, passed: [shipit] }
    - { put: version,                params: { file: version/number} }

  - name: shipit
    public: true
    serial: true
    plan:
      - aggregate:
          - { get: version, passed: [rc], params: {bump: final} }
          - { get: git,     passed: [rc] }
      - task: release
        config:
          image: (( grab meta.image ))
          platform: linux
          inputs:
            - name: version
            - name: git
              path: (( concat "gopath/src/" meta.go.module ))
          outputs:
            - name: gh
            - name: pushme
          run:
            path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/shipit" ))
            args: []
          params:
            BINARY:       (( grab meta.go.binary ))
            REPO_ROOT:    (( concat "gopath/src/" meta.go.module ))
            VERSION_FROM: version/number
            RELEASE_NAME: (( grab meta.release ))
            RELEASE_ROOT: gh
            REPO_OUT:     pushme
            BRANCH:       (( grab meta.github.branch ))
            CMD_PKG:      (( grab meta.go.cmd_module ))

      - aggregate:
        - put: version
          params: { bump: final }
        - put: git
          params:
            rebase: true
            repository: pushme/git
        - put: github
          params:
            name:   gh/name
{'fraction_non_alphanumeric': 0.1233935645956131, 'fraction_numerical': 0.0030920861919025992, 'mean_word_length': 1.8591160220994476, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, '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': '3897405', 'n_tokens_mistral': 3138, 'n_tokens_neox': 3057, 'n_words': 1007}