-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 1.3 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
language: swift # or objective-c
osx_image: xcode9.1
env:
global:
- WORKSPACE=RuntimeDemo.xcworkspace
before_install:
#- brew update || brew update
#- brew outdated xctool || brew upgrade xctool
#- brew outdated carthage || brew upgrade carthage
before_script:
# bootstrap the dependencies for the project
# you can remove if you don't have dependencies
#- carthage bootstrap
script:
- env
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -scheme Runtime -workspace "${WORKSPACE}" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk iphoneos build | xcpretty
- xcodebuild -scheme RuntimeTV -workspace "${WORKSPACE}" ONLY_ACTIVE_ARCH=NO -configuration Release -sdk appletvos build | xcpretty
- xcodebuild -scheme Runtime -workspace "${WORKSPACE}" ONLY_ACTIVE_ARCH=YES -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' ENABLE_TESTABILITY=YES -enableCodeCoverage YES build test | xcpretty
#- xcodebuild -scheme RuntimeTV -workspace "${WORKSPACE}" ONLY_ACTIVE_ARCH=YES -configuration Debug -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES -enableCodeCoverage YES build test | xcpretty
after_success:
- bash <(curl -s https://codecov.io/bash) -t b950ada7-944f-4d80-9474-78be452bb8d5 -J 'Runtime'