forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (27 loc) · 987 Bytes
/
.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
language: objective-c
osx_image: xcode8.3
xcode_project: Apollo.xcodeproj
matrix:
include:
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator10.3
env: DESTINATION="platform=iOS Simulator,OS=10.3,name=iPhone 7"
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator10.3
env: DESTINATION="platform=iOS Simulator,OS=9.3,name=iPhone 6s"
- xcode_scheme: Apollo
xcode_sdk: macosx10.12
env: DESTINATION="platform=macOS,arch=x86_64"
- xcode_scheme: Apollo
xcode_sdk: appletvsimulator10.2
env: DESTINATION="platform=tvOS Simulator,OS=10.2,name=Apple TV 1080p"
cache:
directories:
- ../starwars-server
before_install:
- (./scripts/install-or-update-starwars-server.sh)
- (cd ../starwars-server && npm start) &
- npm install -g apollo-codegen@next
script:
- set -o pipefail
- xcodebuild clean build test -project "${TRAVIS_XCODE_PROJECT}" -scheme "${TRAVIS_XCODE_SCHEME}" -sdk "${TRAVIS_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty