-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from pusher/fix-travis-build
Fix travis tests
- Loading branch information
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
language: objective-c | ||
osx_image: xcode8.1 | ||
osx_image: xcode11.3 | ||
sudo: false | ||
before_install: | ||
- gem install xcpretty | ||
install: | ||
- tail -n +4 Sample\ iOS/Constants.h.example > Sample\ iOS/Constants.h | ||
- echo \#define PUSHER_APP_ID @\"$(env | grep PUSHER_APP_ID | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h | ||
- echo \#define PUSHER_API_KEY @\"$(env | grep PUSHER_API_KEY | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h | ||
- echo \#define PUSHER_API_SECRET @\"$(env | grep PUSHER_API_SECRET | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h | ||
- chmod u+x Scripts/travis-set-constants.sh | ||
- Scripts/travis-set-constants.sh | ||
- bundle install | ||
env: | ||
matrix: | ||
- XCODE_SCHEME="libPusher" SDK="iphonesimulator" DESTINATION="OS=10.1,name=iPhone 7" | ||
- XCODE_SCHEME="libPusher-OSX" SDK="macosx" DESTINATION="arch=x86_64" | ||
- XCODE_SCHEME="Functional Specs" SDK="iphonesimulator" DESTINATION="OS=10.1,name=iPhone 7" | ||
- XCODE_SCHEME="libPusher" SDK="iphonesimulator" DESTINATION="OS=13.3,name=iPhone 11" ADDITIONAL_ARGUMENTS="" | ||
- XCODE_SCHEME="libPusher-OSX" SDK="macosx" DESTINATION="arch=x86_64" ADDITIONAL_ARGUMENTS="MACOSX_DEPLOYMENT_TARGET=10.9" | ||
- XCODE_SCHEME="Functional Specs" SDK="iphonesimulator" DESTINATION="OS=13.3,name=iPhone 11" ADDITIONAL_ARGUMENTS="" | ||
script: | ||
- set -o pipefail | ||
- rackup -p 9292 Scripts/auth_server.ru > logs.txt 2>&1 & | ||
- xcodebuild -workspace libPusher.xcworkspace -scheme "$XCODE_SCHEME" -sdk "$SDK" test -destination "$DESTINATION" | xcpretty -tc | ||
- xcodebuild -workspace libPusher.xcworkspace -scheme "$XCODE_SCHEME" -sdk "$SDK" test -destination "$DESTINATION" $ADDITIONAL_ARGUMENTS | xcpretty -tc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
tail -n +4 Sample\ iOS/Constants.h.example > Sample\ iOS/Constants.h | ||
echo \#define PUSHER_APP_ID @\"$(env | grep PUSHER_APP_ID | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h | ||
echo \#define PUSHER_API_KEY @\"$(env | grep PUSHER_API_KEY | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h | ||
echo \#define PUSHER_API_SECRET @\"$(env | grep PUSHER_API_SECRET | cut -d "=" -f 2)\" >> Sample\ iOS/Constants.h |