<commit_before>version: 2
jobs:
  modules:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-modules
      - run: ./gradlew --no-daemon -p module -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-modules
          paths:
            - .gradle-home
  compatibility:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-compatibility
      - run: ./gradlew --no-daemon -p compatibility -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-compatibility
          paths:
            - .gradle-home
  integrations:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-integrations
      - run: ./gradlew --no-daemon -p integration -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-integrations
          paths:
            - .gradle-home
  manual:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-manual
      - run:
          command: |
            Xvfb :99 -screen 1 1280x1024x16 -nolisten tcp -fbdir /var/run > /dev/null 2>&1 &
            export DISPLAY=:99
            ./gradlew --no-daemon -Pci :doc:manual-snippets:check :doc:manual:build
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-manual
          paths:
            - .gradle-home
  site:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-site
      - run: ./gradlew --no-daemon -p doc/site -Pci check
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-site
          paths:
            - .gradle-home
  saucelabs:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-saucelabs
      - run: ./gradlew --no-daemon -Pci allSauceLabsTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-saucelabs
          paths:
            - .gradle-home
  non-ie:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-non-ie
      - run: ./gradlew --no-daemon -Pci nonIeBrowserStackTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-non-ie
          paths:
            - .gradle-home
  ie:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-ie
      - run: ./gradlew --no-daemon -Pci ieBrowserStackTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-ie
          paths:
            - .gradle-home
  upload:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-upload
      - run: ./gradlew --no-daemon -Pci uploadArchives
      - save_cache:
          key: gradle-home-upload
          paths:
            - .gradle-home
  publish-site:
    docker:
      - image: gebish/ci:v6
    steps:
      - checkout
      - run:
          command: |
            git remote add heroku https://heroku:$HEROKU_API_KEY@git.heroku.com/gebish.git
            git push -f heroku master
  trigger-example-projects:
    docker:
      - image: gebish/ci:v6
    steps:
      - run:
          command: |
            curl -X POST -u ${CIRCLE_API_EXAMPLE_GRADLE_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-gradle/tree/latest
            curl -X POST -u ${CIRCLE_API_EXAMPLE_CUCUMBER_JVM_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-cucumber-jvm/tree/latest
            curl -X POST -u ${CIRCLE_API_EXAMPLE_MAVEN_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-maven/tree/latest
            curl -H "Authorization: Bearer ${APPVEYOR_TOKEN}" -H "Content-type: application/json" -X POST https://ci.appveyor.com/api/builds -d '{"accountName": "erdi", "projectSlug": "geb-example-gradle", "branch": "latest"}'

workflows:
  version: 2
  build-workflow:
    jobs:
      - modules
      - compatibility
      - integrations:
          requires:
            - modules
            - compatibility
      - manual:
          requires:
            - modules
            - compatibility
      - site:
          requires:
            - modules
            - compatibility
      - saucelabs:
          requires:
            - integrations
            - manual
            - site
      - non-ie:
          requires:
            - integrations
            - manual
            - site
      - ie:
          requires:
            - non-ie
      - upload:
          requires:
            - saucelabs
            - ie
          filters:
            branches:
              only: master
      - publish-site:
          requires:
            - upload
          filters:
            branches:
              only: master
      - trigger-example-projects:
          requires:
            - upload
          filters:
            branches:
              only: master<commit_msg>Do not run publishing tasks when building PRs<commit_after>version: 2
jobs:
  modules:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-modules
      - run: ./gradlew --no-daemon -p module -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-modules
          paths:
            - .gradle-home
  compatibility:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-compatibility
      - run: ./gradlew --no-daemon -p compatibility -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-compatibility
          paths:
            - .gradle-home
  integrations:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-integrations
      - run: ./gradlew --no-daemon -p integration -Pci check --continue
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-integrations
          paths:
            - .gradle-home
  manual:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-manual
      - run:
          command: |
            Xvfb :99 -screen 1 1280x1024x16 -nolisten tcp -fbdir /var/run > /dev/null 2>&1 &
            export DISPLAY=:99
            ./gradlew --no-daemon -Pci :doc:manual-snippets:check :doc:manual:build
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-manual
          paths:
            - .gradle-home
  site:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-site
      - run: ./gradlew --no-daemon -p doc/site -Pci check
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-site
          paths:
            - .gradle-home
  saucelabs:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-saucelabs
      - run: ./gradlew --no-daemon -Pci allSauceLabsTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-saucelabs
          paths:
            - .gradle-home
  non-ie:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-non-ie
      - run: ./gradlew --no-daemon -Pci nonIeBrowserStackTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-non-ie
          paths:
            - .gradle-home
  ie:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-ie
      - run: ./gradlew --no-daemon -Pci ieBrowserStackTests
      - store_artifacts:
          path: build/reports
      - save_cache:
          key: gradle-home-ie
          paths:
            - .gradle-home
  upload:
    docker:
      - image: gebish/ci:v6
    environment:
        GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m
        GRADLE_USER_HOME: .gradle-home
    steps:
      - checkout
      - restore_cache:
          keys:
            - gradle-home-upload
      - run:
          command: |
            if [ -z "$CIRCLE_PULL_REQUEST" ]; then
              ./gradlew --no-daemon -Pci uploadArchives
            fi
      - save_cache:
          key: gradle-home-upload
          paths:
            - .gradle-home
  publish-site:
    docker:
      - image: gebish/ci:v6
    steps:
      - checkout
      - run:
          command: |
            if [ -z "$CIRCLE_PULL_REQUEST" ]; then
              git remote add heroku https://heroku:$HEROKU_API_KEY@git.heroku.com/gebish.git
              git push -f heroku master
            fi
  trigger-example-projects:
    docker:
      - image: gebish/ci:v6
    steps:
      - run:
          command: |
            if [ -z "$CIRCLE_PULL_REQUEST" ]; then
              curl -X POST -u ${CIRCLE_API_EXAMPLE_GRADLE_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-gradle/tree/latest
              curl -X POST -u ${CIRCLE_API_EXAMPLE_CUCUMBER_JVM_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-cucumber-jvm/tree/latest
              curl -X POST -u ${CIRCLE_API_EXAMPLE_MAVEN_TOKEN}: https://circleci.com/api/v1.1/project/github/geb/geb-example-maven/tree/latest
              curl -H "Authorization: Bearer ${APPVEYOR_TOKEN}" -H "Content-type: application/json" -X POST https://ci.appveyor.com/api/builds -d '{"accountName": "erdi", "projectSlug": "geb-example-gradle", "branch": "latest"}'
            fi

workflows:
  version: 2
  build-workflow:
    jobs:
      - modules
      - compatibility
      - integrations:
          requires:
            - modules
            - compatibility
      - manual:
          requires:
            - modules
            - compatibility
      - site:
          requires:
            - modules
            - compatibility
      - saucelabs:
          requires:
            - integrations
            - manual
            - site
      - non-ie:
          requires:
            - integrations
            - manual
            - site
      - ie:
          requires:
            - non-ie
      - upload:
          requires:
            - saucelabs
            - ie
          filters:
            branches:
              only: master
      - publish-site:
          requires:
            - upload
          filters:
            branches:
              only: master
      - trigger-example-projects:
          requires:
            - upload
          filters:
            branches:
              only: master
{'fraction_non_alphanumeric': 0.09775891594073412, 'fraction_numerical': 0.014742014742014743, 'mean_word_length': 1.434215295396883, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2088236', 'n_tokens_mistral': 4493, 'n_tokens_neox': 4252, 'n_words': 808}