<commit_before>os:
  - osx
  - linux
osx_image: xcode9
language: generic
sudo: required
dist: trusty
env:
  global:
    - SWIFT_VERSION=4.0
  matrix:
    - SWIFTPM_BUILD=true
    - SWIFTPM_TEST=true
    - XCODE_TEST_SDK=macosx
    - XCODE_BUILD_SDK=iphonesimulator
    - XCODE_BUILD_SDK=appletvsimulator
    - XCODE_BUILD_SDK=watchsimulator

matrix:
  exclude:
    # No need to build and test on macOS
    - os: osx
      env: SWIFTPM_BUILD=true
    # LinuxMain.swift is out of sync
    - os: linux
      env: SWIFTPM_TEST=true
    - os: linux
      env: XCODE_TEST_SDK=macosx
    - os: linux
      env: XCODE_BUILD_SDK=iphonesimulator
    - os: linux
      env: XCODE_BUILD_SDK=appletvsimulator
    - os: linux
      env: XCODE_BUILD_SDK=watchsimulator

install:
  - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"

script:
- if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
- if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
- if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
- if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
- if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi<commit_msg>see if stripping down the Travis config gets builds working on macOS at least<commit_after>os: osx
osx_image: xcode9.4
script: swift build

# os:
#   - osx
#   - linux
# osx_image: xcode9
# language: generic
# sudo: required
# dist: trusty
# env:
#   global:
#     - SWIFT_VERSION=4.0
#   matrix:
#     - SWIFTPM_BUILD=true
#     - SWIFTPM_TEST=true
#     - XCODE_TEST_SDK=macosx
#     - XCODE_BUILD_SDK=iphonesimulator
#     - XCODE_BUILD_SDK=appletvsimulator
#     - XCODE_BUILD_SDK=watchsimulator

# matrix:
#   exclude:
#     # No need to build and test on macOS
#     - os: osx
#       env: SWIFTPM_BUILD=true
#     # LinuxMain.swift is out of sync
#     - os: linux
#       env: SWIFTPM_TEST=true
#     - os: linux
#       env: XCODE_TEST_SDK=macosx
#     - os: linux
#       env: XCODE_BUILD_SDK=iphonesimulator
#     - os: linux
#       env: XCODE_BUILD_SDK=appletvsimulator
#     - os: linux
#       env: XCODE_BUILD_SDK=watchsimulator

# install:
#   - eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"

# script:
# - if [ -n "$SWIFTPM_BUILD" ]; then swift build; fi
# - if [ -n "$SWIFTPM_TEST" ]; then swift test; fi
# - if [ -n "$XCODE_BUILD_SDK" ] || [ -n "$XCODE_TEST_SDK" ]; then swift package generate-xcodeproj; fi
# - if [ -n "$XCODE_BUILD_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package build -sdk $XCODE_BUILD_SDK; fi
# - if [ -n "$XCODE_TEST_SDK" ]; then xcodebuild -project JWT.xcodeproj -scheme JWT-Package test -sdk $XCODE_TEST_SDK; fi
{'fraction_non_alphanumeric': 0.1163963963963964, 'fraction_numerical': 0.002882882882882883, 'mean_word_length': 3.070381231671554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '591723', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1061, 'n_words': 251}