-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (44 loc) · 1.37 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: objective-c
os: osx
osx_image: xcode9.0
xcode_project: DarkSkySwift.xcodeproj
env:
global:
- FRAMEWORK_NAME=DarkSkySwift
before_install:
- rvm use $RVM_RUBY_VERSION
- brew update
- brew outdated carthage || brew upgrade carthage
install:
- bundle install --without=documentation --path ../travis_bundle_dir
before_script:
- carthage bootstrap
- bundle exec danger
matrix:
include:
- osx_image: xcode9
env: SCHEME="macOS" SDK="macosx10.13" DESTINATION="arch=x86_64"
- osx_image: xcode9
env: SCHEME="iOS" SDK="iphonesimulator11.0" DESTINATION="OS=10.2,name=iPhone 7"
- osx_image: xcode9
env: SCHEME="tvOS" SDK="appletvsimulator11.0" DESTINATION="OS=10.2,name=Apple TV 1080p"
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- travis_retry xcodebuild
-project "$FRAMEWORK_NAME.xcodeproj"
-scheme "$FRAMEWORK_NAME-$SCHEME"
-sdk "$SDK"
-destination "$DESTINATION"
-configuration Debug
ONLY_ACTIVE_ARCH=YES
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
GCC_GENERATE_TEST_COVERAGE_FILES=YES
test | xcpretty -f `xcpretty-travis-formatter`
before_deploy:
- carthage build --no-skip-current
- carthage archive $FRAMEWORK_NAME
after_success:
- bundle exec slather
- bash <(curl -s https://codecov.io/bash) -f reports/cobertura.xml -X coveragepy -X gcov -X xcode