Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios, osx] The return of xcpretty, part II #4676

Merged
merged 1 commit into from
Apr 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies:
- Apple Command Line Tools (available at [Apple Developer](https://developer.apple.com/downloads))
- [Homebrew](http://brew.sh)
- [Cask](http://caskroom.io/) (if building for Android)
- [xcpretty](https://github.com/supermarin/xcpretty) (`gem install xcpretty`)

## 3: Setting up a development environment & building

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ $(OSX_PROJ_PATH)/xcshareddata/xcschemes/osxtest.xcscheme: platform/osx/scripts/o
cp $< $@

test-osx: $(OSX_PROJ_PATH) $(OSX_PROJ_PATH)/xcshareddata/xcschemes/osxtest.xcscheme node_modules/express
xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -target test build
set -o pipefail && xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -target test build | xcpretty
build/osx-x86_64/$(BUILDTYPE)/test || ([[ $$? == 139 || $$? == 134 ]] && cat `ls -t1 ~/Library/Logs/DiagnosticReports/* | head -n1`; exit 1)
xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -scheme osxtest test
set -o pipefail && xcodebuild -project $(OSX_PROJ_PATH) -configuration $(BUILDTYPE) -scheme osxtest test | xcpretty

#### iOS targets ##############################################################

Expand All @@ -50,9 +50,9 @@ iproj: $(IOS_PROJ_PATH)
open $(IOS_PROJ_PATH)

test-ios: $(IOS_PROJ_PATH)
xcodebuild -project $(IOS_PROJ_PATH) -configuration $(BUILDTYPE) \
set -o pipefail && xcodebuild -project $(IOS_PROJ_PATH) -configuration $(BUILDTYPE) \
-sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' \
-target test build
-target test build | xcpretty
ios-sim start
ios-sim launch build/ios-all/$(BUILDTYPE)-iphonesimulator/ios-test.app --verbose

Expand Down
1 change: 1 addition & 0 deletions platform/ios/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ workflows:
set -eu -o pipefail
brew tap mapbox/homebrew-ios-sim-3
brew install mapbox/homebrew-ios-sim-3/ios-sim
gem install xcpretty --no-rdoc --no-ri
gem install jazzy --no-rdoc --no-ri
export BUILDTYPE=Debug
make ios
Expand Down
8 changes: 4 additions & 4 deletions platform/ios/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if [[ "${BUILD_FOR_DEVICE}" == true ]]; then
-project ./build/ios-all/platform/ios/platform.xcodeproj \
-configuration ${BUILDTYPE} \
-target platform-lib \
-jobs ${JOBS}
-jobs ${JOBS} | xcpretty
fi

if [[ ${BUILD_DYNAMIC} == true ]]; then
Expand All @@ -105,7 +105,7 @@ if [[ "${BUILD_FOR_DEVICE}" == true ]]; then
-project ./build/ios-all/platform/ios/platform.xcodeproj \
-configuration ${BUILDTYPE} \
-target iossdk \
-jobs ${JOBS}
-jobs ${JOBS} | xcpretty
fi
fi

Expand All @@ -118,7 +118,7 @@ if [[ ${BUILD_STATIC} == true ]]; then
-project ./build/ios-all/platform/ios/platform.xcodeproj \
-configuration ${BUILDTYPE} \
-target platform-lib \
-jobs ${JOBS}
-jobs ${JOBS} | xcpretty
fi

if [[ ${BUILD_DYNAMIC} == true ]]; then
Expand All @@ -132,7 +132,7 @@ if [[ ${BUILD_DYNAMIC} == true ]]; then
-project ./build/ios-all/platform/ios/platform.xcodeproj \
-configuration ${BUILDTYPE} \
-target iossdk \
-jobs ${JOBS}
-jobs ${JOBS} | xcpretty
fi

LIBS=(core.a platform-ios.a)
Expand Down
1 change: 1 addition & 0 deletions platform/node/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ workflows:
brew unlink node
brew install awscli homebrew/versions/node4-lts
brew link homebrew/versions/node4-lts
gem install xcpretty --no-rdoc --no-ri
make node
make test-node || result=$?
./platform/node/scripts/after_script.sh ${BITRISE_BUILD_NUMBER} ${BITRISE_GIT_TAG:-}
Expand Down
1 change: 1 addition & 0 deletions platform/osx/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ workflows:
- content: |-
#!/bin/bash
set -eu -o pipefail
gem install xcpretty --no-rdoc --no-ri
export BUILDTYPE=Debug
make osx
make test-osx
Expand Down
4 changes: 2 additions & 2 deletions scripts/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ Makefile/%: Makefile/__project__

Xcode/%: Xcode/__project__
@printf "$(TEXT_BOLD)$(COLOR_GREEN)* Building target $*...$(FORMAT_END)\n"
xcodebuild \
set -o pipefail && xcodebuild \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY= \
-project $(PLATFORM_OUTPUT)/platform/$(PLATFORM)/platform.xcodeproj \
-configuration $(BUILDTYPE) \
-target $* \
-jobs $(JOBS)
-jobs $(JOBS) | xcpretty

Ninja/%: Ninja/__project__
@printf "$(TEXT_BOLD)$(COLOR_GREEN)* Building target $*...$(FORMAT_END)\n"
Expand Down