-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
73 lines (73 loc) · 2.66 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: objective-c
cache:
directories:
- build
- /usr/local/Homebrew
- $HOME/Library/Caches/Homebrew
jobs:
include:
- stage: build
osx_image: xcode9
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk iphonesimulator -derivedDataPath build -enableCodeCoverage YES ENABLE_TESTABILITY=YES
build-for-testing
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk appletvsimulator -derivedDataPath build -enableCodeCoverage YES ENABLE_TESTABILITY=YES
build-for-testing
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk macosx -derivedDataPath build -enableCodeCoverage YES ENABLE_TESTABILITY=YES
build-for-testing
- &test
stage: test
osx_image: xcode9
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk iphonesimulator -destination 'name=iPhone 5s,OS=10.3.1' -derivedDataPath build
-enableCodeCoverage YES ENABLE_TESTABILITY=YES
test-without-building
after_success:
- ruby Scripts/coverage.rb "$SCHEME"
- bash <(curl -s https://codecov.io/bash) -f 'coverage.txt'
- <<: *test
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk iphonesimulator -destination 'name=iPhone 7,OS=11.0' -derivedDataPath build
-enableCodeCoverage YES ENABLE_TESTABILITY=YES
test-without-building
- <<: *test
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk appletvsimulator -destination 'name=Apple TV 1080p,OS=10.0' -derivedDataPath build
-enableCodeCoverage YES ENABLE_TESTABILITY=YES
test-without-building
- <<: *test
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk appletvsimulator -destination 'name=Apple TV 1080p,OS=11.0' -derivedDataPath build
-enableCodeCoverage YES ENABLE_TESTABILITY=YES
test-without-building
- <<: *test
script:
- xcodebuild -project "$PROJECT" -scheme "$SCHEME" -configuration "$CONFIGURATION"
-sdk macosx -destination 'platform=OS X,arch=x86_64' -derivedDataPath build
-enableCodeCoverage YES ENABLE_TESTABILITY=YES
test-without-building
- stage: carthage
osx_image: xcode9
install:
- brew update
- brew outdated carthage || brew upgrade carthage
script:
- carthage build --no-skip-current
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- PROJECT=Kuery.xcodeproj
- SCHEME=Kuery
- CONFIGURATION=Release
branches:
only:
- master
skip_cleanup: true