Skip to content

Commit 71e8a01

Browse files
committed
chore: Build and test on all supported platforms
1 parent 7cb91b9 commit 71e8a01

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.travis.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
language: objective-c
2-
osx_image: xcode8
3-
script:
4-
- set -o pipefail
1+
os:
2+
- linux
3+
- osx
4+
language: generic
5+
sudo: required
6+
dist: trusty
7+
osx_image: xcode8.3
8+
env:
9+
- SWIFT_VERSION=3.1.1
10+
install:
11+
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
512
- git submodule update --init --recursive
6-
- xcodebuild -project JWT.xcodeproj -scheme JWT-OSX test -sdk macosx | xcpretty -c
7-
- pod lib lint --quick
13+
script:
14+
- swift test
15+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-OSX test -sdk macosx; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-iOS build -sdk iphonesimulator; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-tvOS build -sdk appletvsimulator; fi
18+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project JWT.xcodeproj -scheme JWT-watchOS build -sdk watchsimulator; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pod lib lint; fi

0 commit comments

Comments
 (0)