forked from chrisballinger/libidn-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (28 loc) · 1.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: objective-c
jobs:
include:
- stage: Swift PM
osx_image: xcode11.5
script:
# Build the project using Swift PM
- swift build
# Test the project using Swift PM
- swift test
- stage: Xcode Tests
osx_image: xcode9.3
before_install:
# Fix Travis xcodebuild exited with 65 https://github.com/travis-ci/travis-ci/issues/6675#issuecomment-257964767
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep -m 1 "iPhone 8 (11" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
install:
- cd Tests
- bundle install
- bundle exec pod install
script:
- set -o pipefail
- travis_retry xcodebuild -workspace libidn.xcworkspace -scheme "libidn (iOS)" -sdk iphonesimulator -destination "id=$IOS_SIMULATOR_UDID" build | xcpretty -c
- xcodebuild -workspace libidn.xcworkspace -scheme libidnTests -sdk macosx -arch x86_64 test | xcpretty -c
- xcodebuild -workspace libidn.xcworkspace -scheme libidnTestsPods -sdk macosx -arch x86_64 test | xcpretty -c
- xcodebuild -workspace libidn.xcworkspace -scheme "libidn (tvOS)" -sdk appletvsimulator -arch x86_64 build | xcpretty -c
- xcodebuild -workspace libidn.xcworkspace -scheme "libidn (watchOS)" -sdk watchos build | xcpretty -c