forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (55 loc) · 2.26 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
language: objective-c
osx_image: xcode9.4
xcode_workspace: Apollo.xcworkspace
matrix:
include:
- xcode_scheme: Apollo
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_scheme: Apollo
xcode_sdk: appletvsimulator11.4
env: DESTINATION="platform=tvOS Simulator,OS=11.4,name=Apple TV"
- xcode_scheme: ApolloSQLite
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_scheme: ApolloWebSocket
xcode_sdk: macosx10.13
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
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 -workspace "${TRAVIS_XCODE_WORKSPACE}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}"
- xcodebuild test-without-building -workspace "${TRAVIS_XCODE_WORKSPACE}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}"