<commit_before>language: minimal
jobs:
  include:
    - &run_tests
      # Template; subsequent uses modify 'env'
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=uw_build
      stage: Test
      sudo: required
      services:
        - docker
      before_install:
        - sudo apt-get update
        - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
        - sudo service docker restart
        - sleep 5
        - sudo docker pull centos:centos${OS_VERSION}
      script:
        - tests/setup_tests.sh
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=uw_build
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=osg
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=osg

    - &deploy_rpm
      # Template; subsequent uses modify 'env'
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=uw_build
      stage: Deploy
      sudo: required
      skip_cleanup: true
      services:
        - docker
      before_install:
        - sudo apt-get update
        - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
        - sudo service docker restart
        - sleep 5
        - sudo docker pull centos:centos${OS_VERSION}
      script: tests/setup_tests.sh
      deploy:
        - provider: script
          on:
            repo: htcondor/htcondor-ce
          skip_cleanup: true
          script: tests/sftp_upload.sh
    - <<: *deploy_rpm
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=uw_build<commit_msg>Don't run deploy stage at all if we're not deploying<commit_after>language: minimal
jobs:
  include:
    - &run_tests
      # Template; subsequent uses modify 'env'
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=uw_build
      stage: Test
      sudo: required
      services:
        - docker
      before_install:
        - sudo apt-get update
        - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
        - sudo service docker restart
        - sleep 5
        - sudo docker pull centos:centos${OS_VERSION}
      script:
        - tests/setup_tests.sh
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=uw_build
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=osg
    - <<: *run_tests
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=osg

    - &deploy_rpm
      # Template; subsequent uses modify 'env'
      env:
        - OS_TYPE=centos OS_VERSION=6 BUILD_ENV=uw_build
      on:
        repo: htcondor/htcondor-ce
      stage: Deploy
      sudo: required
      skip_cleanup: true
      services:
        - docker
      before_install:
        - sudo apt-get update
        - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
        - sudo service docker restart
        - sleep 5
        - sudo docker pull centos:centos${OS_VERSION}
      script: tests/setup_tests.sh
      deploy:
        - provider: script
          skip_cleanup: true
          script: tests/sftp_upload.sh
    - <<: *deploy_rpm
      env:
        - OS_TYPE=centos OS_VERSION=7 BUILD_ENV=uw_build
{'fraction_non_alphanumeric': 0.10253422662394407, 'fraction_numerical': 0.01631226332653656, 'mean_word_length': 1.955249569707401, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6380812', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1135, 'n_words': 252}