<commit_before>---
stages:
- name: Deploy and Test
  inputs:
  - type: git
    branch: master
  triggers:
  - type: commit
    enabled: 'false'
  properties:
  - name: CF_APP_NAME
    value: 'null'
    type: text
  - name: TEST_URL
    value: 'null'
    type: text
  jobs:
  - name: Deploy
    type: deployer
    target:
      url: ${CF_TARGET_URL}
      organization: ${CF_ORGANIZATION}
      space: ${CF_SPACE}
      application: HelloNodeApp
    script: |
      #!/bin/bash
      cf push "${CF_APP}"

      export CF_APP_NAME="$CF_APP"

      # view logs
      #cf logs "${CF_APP}" --recent
  - name: Sauce Labs Tests
    type: tester
    extension_id: ibm.devops.services.pipeline.saucelabs
    target:
      url: ${CF_TARGET_URL}
      organization: ${CF_ORGANIZATION}
      space: ${CF_SPACE}
    ACCESS: access
    DL_ASSETS: 'true'
    SELECT_CMD: npm test
    USER_ID: username
    COMMAND: |
      #!/bin/bash
    enable_tests: 'true'
    test_file_pattern: *.xml<commit_msg>configured test reporting in yml<commit_after>---
stages:
- name: Deploy and Test
  inputs:
  - type: git
    branch: master
  triggers:
  - type: commit
    enabled: 'false'
  properties:
  - name: CF_APP_NAME
    value: 'null'
    type: text
  - name: TEST_URL
    value: 'null'
    type: text
  jobs:
  - name: Deploy
    type: deployer
    target:
      url: ${CF_TARGET_URL}
      organization: ${CF_ORGANIZATION}
      space: ${CF_SPACE}
      application: HelloNodeApp
    script: |
      #!/bin/bash
      cf push "${CF_APP}"

      export CF_APP_NAME="$CF_APP"

      # view logs
      #cf logs "${CF_APP}" --recent
  - name: Sauce Labs Tests
    type: tester
    extension_id: ibm.devops.services.pipeline.saucelabs
    target:
      url: ${CF_TARGET_URL}
      organization: ${CF_ORGANIZATION}
      space: ${CF_SPACE}
    ACCESS: access
    DL_ASSETS: 'true'
    SELECT_CMD: npm test
    USER_ID: username
    COMMAND: |
      #!/bin/bash
    enable_tests: 'true'
    test_file_pattern: '*.xml'
{'fraction_non_alphanumeric': 0.11451531893520844, 'fraction_numerical': 0.0, 'mean_word_length': 2.3820033955857385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3059338', 'n_tokens_mistral': 722, 'n_tokens_neox': 698, 'n_words': 175}