language: objective-c
osx_image: xcode8
script:
- set -o pipefail
- git submodule update --init --recursive
- xcodebuild -project JWT.xcodeproj -scheme JWT-OSX test -sdk macosx | xcpretty -c
- pod lib lint --quick

os:
- linux
- osx
language: generic
sudo: required
dist: trusty
osx_image: xcode8.3
env:
- SWIFT_VERSION=3.1.1
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
- git submodule update --init --recursive
script:
- swift test
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-OSX test -sdk macosx; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-iOS build -sdk iphonesimulator; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-tvOS build -sdk appletvsimulator; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-watchOS build -sdk watchsimulator; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pod lib lint; fi

Build and test on all supported platforms
chore: Build and test on all supported platforms
