<commit_before>aliases:
  - &xcode-9
    steps:
      - checkout
      - run: |
          ( xcodebuild -scheme Base32 test # -sdk macosx -destination arch=x86_64
            xcodebuild -scheme Base32 test -sdk iphonesimulator -destination "name=iPhone 8"
            xcodebuild -scheme Base32 test -sdk appletvsimulator -destination "name=Apple TV 4K"
            xcodebuild -scheme Base32 build -sdk watchsimulator -destination "name=Apple Watch Series 3 - 38mm"
          ) | xcpretty -r junit
      - store_test_results:
          path: build/reports/
      - run: pod lib lint
      - run: bash <(curl -s https://codecov.io/bash)

  - &steps-for-spm
    - checkout
    - run: swift test

version: 2
jobs:

  xcode_9_swift_4:
    macos:
      xcode: "9.0"
    <<: *xcode-9

  xcode_9.1_swift_4.0.2:
    macos:
      xcode: "9.1.0"
    <<: *xcode-9

  xcode_9.2_swift_4.0.3:
    macos:
      xcode: "9.2.0"
    <<: *xcode-9

  xcode_9.3_swift_4.1:
    macos:
      xcode: "9.3.0"
    <<: *xcode-9

  spm_swift_4:
    macos:
      xcode: "9.0"
    steps: *steps-for-spm

  spm_swift_4.0.2:
    macos:
      xcode: "9.1.0"
    steps: *steps-for-spm

  spm_swift_4.0.3:
    macos:
      xcode: "9.2.0"
    steps: *steps-for-spm

  spm_swift_4.1:
    macos:
      xcode: "9.3.0"
    steps: *steps-for-spm

  linux_swift_4:
    docker:
      - image: norionomura/swift:40
    steps: *steps-for-spm

  linux_swift_4.0.2:
    docker:
      - image: norionomura/swift:402
    steps: *steps-for-spm

  linux_swift_4.0.3:
    docker:
      - image: norionomura/swift:403
    steps: *steps-for-spm

  linux_swift_4.1:
    docker:
      - image: norionomura/swift:41
    steps: *steps-for-spm

workflows:
  version: 2
  workflow:
    jobs:
      - xcode_9_swift_4
      - xcode_9.1_swift_4.0.2
      - xcode_9.2_swift_4.0.3
      - xcode_9.3_swift_4.1
      - spm_swift_4
      - spm_swift_4.0.2
      - spm_swift_4.0.3
      - spm_swift_4.1
      - linux_swift_4
      - linux_swift_4.0.2
      - linux_swift_4.0.3
      - linux_swift_4.1
<commit_msg>Use Ruby 2.3 on CircleCI<commit_after>aliases:
  - &xcode-9
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - run: |
          ( xcodebuild -scheme Base32 test # -sdk macosx -destination arch=x86_64
            xcodebuild -scheme Base32 test -sdk iphonesimulator -destination "name=iPhone 8"
            xcodebuild -scheme Base32 test -sdk appletvsimulator -destination "name=Apple TV 4K"
            xcodebuild -scheme Base32 build -sdk watchsimulator -destination "name=Apple Watch Series 3 - 38mm"
          ) | xcpretty -r junit
      - store_test_results:
          path: build/reports/
      - run: echo "ruby-2.3" > ~/.ruby-version
      - run: pod lib lint
      - run: bash <(curl -s https://codecov.io/bash)

  - &steps-for-spm
    - checkout
    - run: swift test

version: 2
jobs:

  xcode_9_swift_4:
    macos:
      xcode: "9.0"
    <<: *xcode-9

  xcode_9.1_swift_4.0.2:
    macos:
      xcode: "9.1.0"
    <<: *xcode-9

  xcode_9.2_swift_4.0.3:
    macos:
      xcode: "9.2.0"
    <<: *xcode-9

  xcode_9.3_swift_4.1:
    macos:
      xcode: "9.3.0"
    <<: *xcode-9

  spm_swift_4:
    macos:
      xcode: "9.0"
    steps: *steps-for-spm

  spm_swift_4.0.2:
    macos:
      xcode: "9.1.0"
    steps: *steps-for-spm

  spm_swift_4.0.3:
    macos:
      xcode: "9.2.0"
    steps: *steps-for-spm

  spm_swift_4.1:
    macos:
      xcode: "9.3.0"
    steps: *steps-for-spm

  linux_swift_4:
    docker:
      - image: norionomura/swift:40
    steps: *steps-for-spm

  linux_swift_4.0.2:
    docker:
      - image: norionomura/swift:402
    steps: *steps-for-spm

  linux_swift_4.0.3:
    docker:
      - image: norionomura/swift:403
    steps: *steps-for-spm

  linux_swift_4.1:
    docker:
      - image: norionomura/swift:41
    steps: *steps-for-spm

workflows:
  version: 2
  workflow:
    jobs:
      - xcode_9_swift_4
      - xcode_9.1_swift_4.0.2
      - xcode_9.2_swift_4.0.3
      - xcode_9.3_swift_4.1
      - spm_swift_4
      - spm_swift_4.0.2
      - spm_swift_4.0.3
      - spm_swift_4.1
      - linux_swift_4
      - linux_swift_4.0.2
      - linux_swift_4.0.3
      - linux_swift_4.1

{'fraction_non_alphanumeric': 0.12332695984703633, 'fraction_numerical': 0.06022944550669216, 'mean_word_length': 1.8743131868131868, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '71715', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1771, 'n_words': 317}