mirror of https://github.com/oxen-io/session-ios
Fix ci for xcode 8
* Makefile for builds (CLI FTW) Easier to make sure we're doing the same thing locally as in travis // FREEBIEpull/1/head
parent
a32a18ac67
commit
f83f808986
@ -1,27 +1,14 @@
|
||||
language: objective-c
|
||||
|
||||
osx_image: xcode7.3
|
||||
env:
|
||||
- TEST_DIR=Example/TSKitiOSTestApp
|
||||
osx_image: xcode8
|
||||
|
||||
before_install:
|
||||
- cd $TEST_DIR
|
||||
- brew update
|
||||
- brew outdated xctool || brew upgrade xctool
|
||||
- gem install cocoapods xcpretty --no-ri --no-rdoc
|
||||
- pod repo update --silent
|
||||
|
||||
install: pod install
|
||||
after_failure:
|
||||
- sleep 10 # This prevents the occasional output truncation that happens when piping to xcpretty.
|
||||
|
||||
script:
|
||||
- |
|
||||
set -o pipefail
|
||||
xcodebuild -workspace TSKitiOSTestApp.xcworkspace \
|
||||
-scheme TSKitiOSTestApp \
|
||||
-sdk iphonesimulator \
|
||||
-destination 'platform=iOS Simulator,name=iPhone 6' \
|
||||
build test | xcpretty
|
||||
|
||||
xcode_workspace: TSKitiOSTestApp.xcworkspace
|
||||
xcode_scheme: TSKitiOSTestApp
|
||||
script: make
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Make sure we're failing even though we pipe to xcpretty
|
||||
SHELL=/bin/bash -o pipefail -o errexit
|
||||
|
||||
BUILD_DESTINATION = platform=iOS Simulator,name=iPhone 6,OS=9.3
|
||||
WORKING_DIR = Example/TSKitiOSTestApp
|
||||
SCHEME = TSKitiOSTestApp
|
||||
XCODE_BUILD = xcrun xcodebuild -workspace $(SCHEME).xcworkspace -scheme $(SCHEME) -sdk iphonesimulator
|
||||
|
||||
.PHONY: build test retest clean
|
||||
|
||||
default: test
|
||||
|
||||
test: pod_install retest
|
||||
|
||||
pod_install:
|
||||
cd $(WORKING_DIR) && \
|
||||
pod install
|
||||
|
||||
build: pod_install
|
||||
cd $(WORKING_DIR) && \
|
||||
$(XCODE_BUILD) build | xcpretty
|
||||
|
||||
retest:
|
||||
cd $(WORKING_DIR) && \
|
||||
$(XCODE_BUILD) \
|
||||
-destination '${BUILD_DESTINATION}' \
|
||||
build test
|
||||
|
||||
clean:
|
||||
cd $(WORKING_DIR) && \
|
||||
$(XCODE_BUILD) \
|
||||
clean | xcpretty
|
||||
|
Loading…
Reference in New Issue