forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (66 loc) · 2.71 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
language: objective-c
osx_image: xcode10
xcode_workspace: Apollo.xcworkspace
matrix:
include:
- xcode_scheme: Apollo
xcode_sdk: macosx10.14
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=12.0,name=iPhone XS"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_scheme: Apollo
xcode_sdk: appletvsimulator12.0
env: DESTINATION="platform=tvOS Simulator,OS=12.0,name=Apple TV"
- xcode_scheme: ApolloSQLite
xcode_sdk: macosx10.14
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=12.0,name=iPhone XS"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: ApolloSQLite
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_scheme: ApolloWebSocket
xcode_sdk: macosx10.14
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=12.0,name=iPhone XS"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=10.3.1,name=iPhone 7"
- xcode_scheme: ApolloWebSocket
xcode_sdk: iphonesimulator12.0
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
cache:
directories:
- ../starwars-server
before_install:
- nvm install 8
- nvm alias default 8
- (./scripts/install-or-update-starwars-server.sh)
- (cd ../starwars-server && npm start) &
- npm install -g apollo
script:
- set -o pipefail
- xcodebuild clean build build-for-testing -workspace "${TRAVIS_XCODE_WORKSPACE}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty
- xcodebuild test-without-building -workspace "${TRAVIS_XCODE_WORKSPACE}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty