<commit_before>---
jobs:
  - name: test-unit
    public: true
    plan:
      - get:      bosh-init
      - aggregate:
        - task:       test-unit
          file:       bosh-init/ci/concourse/tasks/test-unit.yml

  - name: test-integration
    public: true
    plan:
      - get:      bosh-init
      - aggregate:
        - task:       test-integration
          privileged: true
          file:       bosh-init/ci/concourse/tasks/test-integration.yml

  - name: test-acceptance
    public: true
    plan:
      - get:      bosh-init
      - aggregate:
        - task:       test-acceptance
          privileged: true
          file:       bosh-init/ci/concourse/tasks/test-acceptance.yml
          config:
            params:
              BOSH_AWS_ACCESS_KEY_ID:     {{aws_ec2_acceptance_tests_access_key}}
              BOSH_AWS_SECRET_ACCESS_KEY: {{aws_ec2_acceptance_tests_secret_key}}
              BOSH_LITE_KEYPAIR:          {{aws_ec2_acceptance_tests_bosh_lite_keypair}}
              BOSH_LITE_SUBNET_ID:        {{aws_ec2_acceptance_tests_bosh_lite_subnet_id}}
              BOSH_LITE_SECURITY_GROUP:   {{aws_ec2_acceptance_tests_bosh_lite_security_group}}
              BOSH_LITE_PRIVATE_KEY:      {{aws_ec2_acceptance_tests_bosh_lite_private_key}}

  - name: bump
    plan:
      - get:      bosh-init
        passed:   [test-unit,test-integration,test-acceptance]
      - get:      version-semver
        trigger:  false
        params:   { bump: patch }
      - aggregate:
        - put:    version-semver
          params: { file: version-semver/number }

  - name: build
    plan:
      - get:      bosh-init
        passed:   [bump]
      - get:      version-semver
        passed:   [bump]
      - aggregate:
        - task:   build-linux
          file:   bosh-init/ci/concourse/tasks/build-linux.yml
        - task:   build-darwin
          file:   bosh-init/ci/concourse/tasks/build-darwin.yml
      - aggregate:
        - put:    release-bucket-linux
          params: { from: bosh-init/out/bosh-init-.*-linux-amd64 }
        - put:    release-bucket-darwin
          params: { from: bosh-init/out/bosh-init-.*-darwin-amd64 }
        - put:    bosh-init
          params:
            repository: bosh-init
            tag: version-semver/number
            tag_prefix: v

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

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

resources:
  - name: bosh-init
    type:       git
    source:
      uri:         <EMAIL>.com:cloudfoundry/bosh-init.git
      branch:      master
      private_key: {{concourse_github_private_key}}

  - name: release-bucket-linux
    type:       s3
    source:
      regexp:             bosh-init-(.*)-linux-amd64
      bucket:             {{aws_s3_release_bucket}}
      region_name:        {{aws_s3_release_bucket_region}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}

  - name: release-bucket-darwin
    type:       s3
    source:
      regexp:             bosh-init-(.*)-darwin-amd64
      bucket:             {{aws_s3_release_bucket}}
      region_name:        {{aws_s3_release_bucket_region}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}

  - name: version-semver
    type:       semver
    source:
      initial_version: 0.0.8
      key:                current-version
      bucket:             {{aws_s3_release_bucket}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}
<commit_msg>run acceptance tests after unit and integration<commit_after>---
jobs:
  - name: test-unit
    public: true
    plan:
      - get:      bosh-init
      - aggregate:
        - task:       test-unit
          file:       bosh-init/ci/concourse/tasks/test-unit.yml

  - name: test-integration
    public: true
    plan:
      - get:      bosh-init
      - aggregate:
        - task:       test-integration
          privileged: true
          file:       bosh-init/ci/concourse/tasks/test-integration.yml

  - name: test-acceptance
    public: true
    plan:
      - get:      bosh-init
        passed:   [test-unit,test-integration]
      - aggregate:
        - task:       test-acceptance
          privileged: true
          file:       bosh-init/ci/concourse/tasks/test-acceptance.yml
          config:
            params:
              BOSH_AWS_ACCESS_KEY_ID:     {{aws_ec2_acceptance_tests_access_key}}
              BOSH_AWS_SECRET_ACCESS_KEY: {{aws_ec2_acceptance_tests_secret_key}}
              BOSH_LITE_KEYPAIR:          {{aws_ec2_acceptance_tests_bosh_lite_keypair}}
              BOSH_LITE_SUBNET_ID:        {{aws_ec2_acceptance_tests_bosh_lite_subnet_id}}
              BOSH_LITE_SECURITY_GROUP:   {{aws_ec2_acceptance_tests_bosh_lite_security_group}}
              BOSH_LITE_PRIVATE_KEY:      {{aws_ec2_acceptance_tests_bosh_lite_private_key}}

  - name: bump
    plan:
      - get:      bosh-init
        passed:   [test-acceptance]
      - get:      version-semver
        trigger:  false
        params:   { bump: patch }
      - aggregate:
        - put:    version-semver
          params: { file: version-semver/number }

  - name: build
    plan:
      - get:      bosh-init
        passed:   [bump]
      - get:      version-semver
        passed:   [bump]
      - aggregate:
        - task:   build-linux
          file:   bosh-init/ci/concourse/tasks/build-linux.yml
        - task:   build-darwin
          file:   bosh-init/ci/concourse/tasks/build-darwin.yml
      - aggregate:
        - put:    release-bucket-linux
          params: { from: bosh-init/out/bosh-init-.*-linux-amd64 }
        - put:    release-bucket-darwin
          params: { from: bosh-init/out/bosh-init-.*-darwin-amd64 }
        - put:    bosh-init
          params:
            repository: bosh-init
            tag: version-semver/number
            tag_prefix: v

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

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

resources:
  - name: bosh-init
    type:       git
    source:
      uri:         <EMAIL>:cloudfoundry/bosh-init.git
      branch:      master
      private_key: {{concourse_github_private_key}}

  - name: release-bucket-linux
    type:       s3
    source:
      regexp:             bosh-init-(.*)-linux-amd64
      bucket:             {{aws_s3_release_bucket}}
      region_name:        {{aws_s3_release_bucket_region}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}

  - name: release-bucket-darwin
    type:       s3
    source:
      regexp:             bosh-init-(.*)-darwin-amd64
      bucket:             {{aws_s3_release_bucket}}
      region_name:        {{aws_s3_release_bucket_region}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}

  - name: version-semver
    type:       semver
    source:
      initial_version: 0.0.8
      key:                current-version
      bucket:             {{aws_s3_release_bucket}}
      access_key_id:      {{aws_s3_release_bucket_access_key}}
      secret_access_key:  {{aws_s3_release_bucket_secret_key}}

{'fraction_non_alphanumeric': 0.09593023255813954, 'fraction_numerical': 0.007583417593528817, 'mean_word_length': 1.7533054975643703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7358560', 'n_tokens_mistral': 2653, 'n_tokens_neox': 2584, 'n_words': 414}