forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (59 loc) · 2.35 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
language: objective-c
osx_image: xcode9
matrix:
include:
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=11.0,name=iPhone 8"
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_project: Apollo.xcodeproj
xcode_scheme: Apollo
xcode_sdk: appletvsimulator11.0
env: DESTINATION="platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p"
- xcode_project: ApolloSQLite.xcodeproj
xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=11.0,name=iPhone 8"
- xcode_project: ApolloSQLite.xcodeproj
xcode_scheme: ApolloSQLite
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_project: ApolloSQLite.xcodeproj
xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_project: ApolloSQLite.xcodeproj
xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.0
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_project: ApolloSQLite.xcodeproj
xcode_scheme: ApolloSQLite
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
cache:
directories:
- ../starwars-server
before_install:
- (./scripts/install-or-update-starwars-server.sh)
- (cd ../starwars-server && npm start) &
- npm install -g apollo-codegen
script:
- set -o pipefail
- xcodebuild clean build build-for-testing -project "${TRAVIS_XCODE_PROJECT}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty
- xcodebuild test-without-building -project "${TRAVIS_XCODE_PROJECT}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty