forked from apollographql/apollo-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (21 loc) · 846 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
language: objective-c
osx_image: xcode9.4
xcode_workspace: Apollo.xcworkspace
matrix:
include:
- xcode_scheme: Apollo
xcode_sdk: iphonesimulator11.4
env: DESTINATION="platform=iOS Simulator,OS=11.4,name=iPhone 8"
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