<commit_before>---

resource_types:

- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource
    tag: latest

resources:

- name: pipeline-image
  type: docker-image
  source:
    repository: guidowb/meta-buildpack-pipeline
    email: {{docker-hub-email}}
    username: {{docker-hub-username}}
    password: {{docker-<PASSWORD>}}

- name: meta-buildpack-repo
  type: git
  source:
    branch: {{github-branch}}
    uri: http://github.com/cf-platform-eng/meta-buildpack.git

- name: meta-buildpack
  type: s3
  source:
    bucket: {{s3-bucket}}
    regexp: meta_buildpack-v(?P<version>.*)\.zip
    access_key_id: {{s3-access-key}}
    secret_access_key: {{s3-secret}}

- name: pcf-environment-1-6
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf1_6
    private_key: {{github-pool-private-key}}

- name: pcf-environment-1-7
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf1_7
    private_key: {{github-pool-private-key}}

- name: pcf-environment-1-8
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf
    private_key: {{github-pool-private-key}}

- name: slack-alert
  type: slack-notification
  source:
    url: {{slack-hook}}

- name: version
  type: semver
  source:
    driver: git
    uri: <EMAIL>:cf-platform-eng/meta-buildpack
    branch: version
    file: version
    private_key: {{github-semver-private-key}}

jobs:

- name: build-image
  plan:
  - get: meta-buildpack-repo
    trigger: true
  - put: pipeline-image
    params:
      build: meta-buildpack-repo/ci

- name: create-dev
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-image ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-image ]
      trigger: true
  - put: version
    params:
      pre: dev

- name: create-patch
  plan:
  - put: version
    params:
      bump: patch

- name: create-minor
  plan:
  - put: version
    params:
      bump: minor

- name: create-major
  plan:
  - put: version
    params:
      bump: major

- name: build-buildpack
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ create-dev ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ create-dev ]
      trigger: true
    - get: version
      trigger: true
  - task: build-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
      outputs:
      - name: meta-buildpack
      run:
        path: sh
        args:
        - -exc
        - |
          apt-get update
          apt-get -y install zip
          (cd meta-buildpack-repo; ./build)
          VERSION=`cat version/number`
          cp meta_buildpack.zip meta-buildpack/meta_buildpack-v${VERSION}.zip
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack build failed, {{slack-href}}'
          username: Meta Buildpack
  - put: meta-buildpack
    params:
      file: meta-buildpack/meta_buildpack-*.zip

- name: test-1.6
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack
      passed: [ build-buildpack ]
      trigger: true
    - get: version
      passed: [ build-buildpack ]
      trigger: true
  - task: test-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
      - name: meta-buildpack
      run:
        path: sh
        args:
        - -exc
        - |
          cp meta-buildpack/meta_buildpack-v*.zip meta-buildpack-repo/meta_buildpack.zip
          cd meta-buildpack-repo/test
          ./run
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack test failed on PCF 1.6, {{slack-href}}'
          username: Meta Buildpack
<commit_msg>Test against 1.6, 1.7, and 1.8<commit_after>---

resource_types:

- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource
    tag: latest

resources:

- name: pipeline-image
  type: docker-image
  source:
    repository: guidowb/meta-buildpack-pipeline
    email: {{docker-hub-email}}
    username: {{docker-hub-username}}
    password: {{docker-hub-password}}

- name: meta-buildpack-repo
  type: git
  source:
    branch: {{github-branch}}
    uri: http://github.com/cf-platform-eng/meta-buildpack.git

- name: meta-buildpack
  type: s3
  source:
    bucket: {{s3-bucket}}
    regexp: meta_buildpack-v(?P<version>.*)\.zip
    access_key_id: {{s3-access-key}}
    secret_access_key: {{s3-secret}}

- name: pcf-environment-1-6
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf1_6
    private_key: {{github-pool-private-key}}

- name: pcf-environment-1-7
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf1_7
    private_key: {{github-pool-private-key}}

- name: pcf-environment-1-8
  type: pool
  source:
    uri: <EMAIL>:cf-platform-eng/pipeline-resource-pool-v2
    branch: master
    pool: pcf
    private_key: {{github-pool-private-key}}

- name: slack-alert
  type: slack-notification
  source:
    url: {{slack-hook}}

- name: version
  type: semver
  source:
    driver: git
    uri: <EMAIL>:cf-platform-eng/meta-buildpack
    branch: version
    file: version
    private_key: {{github-semver-private-key}}

jobs:

- name: build-image
  plan:
  - get: meta-buildpack-repo
    trigger: true
  - put: pipeline-image
    params:
      build: meta-buildpack-repo/ci

- name: create-dev
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-image ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-image ]
      trigger: true
  - put: version
    params:
      pre: dev

- name: create-patch
  plan:
  - put: version
    params:
      bump: patch

- name: create-minor
  plan:
  - put: version
    params:
      bump: minor

- name: create-major
  plan:
  - put: version
    params:
      bump: major

- name: build-buildpack
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ create-dev ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ create-dev ]
      trigger: true
    - get: version
      trigger: true
  - task: build-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
        path: meta-buildpack
      - name: version
      outputs:
      - name: buildpack
      run:
        path: sh
        args:
        - -exc
        - |
          (cd meta-buildpack; ./build)
          VERSION=`cat version/number`
          cp meta-buildpack/meta_buildpack.zip buildpack/meta_buildpack-v${VERSION}.zip
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack build failed, {{slack-href}}'
          username: Meta Buildpack
  - put: meta-buildpack
    params:
      file: buildpack/meta_buildpack-*.zip

- name: test-1.6
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack
      passed: [ build-buildpack ]
      trigger: true
    - get: version
      passed: [ build-buildpack ]
      trigger: true
    - put: pcf-environment-1-6
      params:
        acquire: true
  - task: test-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
        path: meta-buildpack
      - name: meta-buildpack
        path: buildpack
      - name: pcf-environment-1-6
      run:
        path: sh
        args:
        - -exc
        - |
          (cd pcf-environment-1-6; pcf target -o system -s system)
          cp buildpack/meta_buildpack-v*.zip meta-buildpack/meta_buildpack.zip
          cd meta-buildpack/test
          ./run
    ensure:
      put: pcf-environment-1-6
      params:
        release: pcf-environment-1-6
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack test failed on PCF 1.6, {{slack-href}}'
          username: Meta Buildpack

- name: test-1.7
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack
      passed: [ build-buildpack ]
      trigger: true
    - get: version
      passed: [ build-buildpack ]
      trigger: true
    - put: pcf-environment-1-7
      params:
        acquire: true
  - task: test-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
        path: meta-buildpack
      - name: meta-buildpack
        path: buildpack
      - name: pcf-environment-1-7
      run:
        path: sh
        args:
        - -exc
        - |
          (cd pcf-environment-1-7; pcf target -o system -s system)
          cp buildpack/meta_buildpack-v*.zip meta-buildpack/meta_buildpack.zip
          cd meta-buildpack/test
          ./run
    ensure:
      put: pcf-environment-1-7
      params:
        release: pcf-environment-1-7
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack test failed on PCF 1.7, {{slack-href}}'
          username: Meta Buildpack

- name: test-1.8
  plan:
  - aggregate:
    - get: pipeline-image
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack-repo
      passed: [ build-buildpack ]
      trigger: true
    - get: meta-buildpack
      passed: [ build-buildpack ]
      trigger: true
    - get: version
      passed: [ build-buildpack ]
      trigger: true
    - put: pcf-environment-1-8
      params:
        acquire: true
  - task: test-buildpack
    image: pipeline-image
    config:
      platform: linux
      inputs:
      - name: meta-buildpack-repo
        path: meta-buildpack
      - name: meta-buildpack
        path: buildpack
      - name: pcf-environment-1-8
      run:
        path: sh
        args:
        - -exc
        - |
          (cd pcf-environment-1-8; pcf target -o system -s system)
          cp buildpack/meta_buildpack-v*.zip meta-buildpack/meta_buildpack.zip
          cd meta-buildpack/test
          ./run
    ensure:
      put: pcf-environment-1-8
      params:
        release: pcf-environment-1-8
    on_failure:
      aggregate:
      - put: slack-alert
        params:
          channel: {{slack-channel}}
          icon_emoji: ':concourse:'
          text: '{{github-branch}} Meta-buildpack test failed on PCF 1.8, {{slack-href}}'
          username: Meta Buildpack

{'fraction_non_alphanumeric': 0.1173545065875578, 'fraction_numerical': 0.007503708227903324, 'mean_word_length': 1.989567031820553, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '3047034', 'n_tokens_mistral': 3780, 'n_tokens_neox': 3743, 'n_words': 848}