From f15eaa5dc83ad5e1a193da0c537f8ad4124a22a8 Mon Sep 17 00:00:00 2001 From: Amos Chan Date: Tue, 3 Jan 2017 14:15:15 -0500 Subject: [PATCH 1/3] Run tests with xctool --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebc6256..46181ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: objective-c osx_image: xcode8.2 -env: - - PLATFORM="ios" SCHEME="Noosh" TARGET="NooshTests" DESTINATION="id=DB794781-65A7-4884-8D00-AAC3CBD39A44" SDK="iphonesimulator10.2" before_install: + - brew install xctool - pod repo update > /dev/null - pod install before_script: @@ -10,5 +9,5 @@ before_script: - instruments -s devices script: - set -o pipefail - - xcodebuild -workspace Noosh.xcworkspace -scheme $SCHEME -destination "$DESTINATION" -sdk "$SDK" test + - xctool -workspace Noosh.xcworkspace -scheme Noosh run-tests -test-sdk iphonesimulator10.2 From 5f044cbcef507550bf1d1f2d2e05967adfff3c8f Mon Sep 17 00:00:00 2001 From: Amos Chan Date: Tue, 3 Jan 2017 15:46:10 -0500 Subject: [PATCH 2/3] Build before running tests --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 46181ae..ab5f079 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,9 @@ language: objective-c osx_image: xcode8.2 +env: + - PLATFORM="ios" SCHEME="Noosh" TARGET="NooshTests" DESTINATION="id=DB794781-65A7-4884-8D00-AAC3CBD39A44" SDK="iphonesimulator10.2" before_install: + - brew update - brew install xctool - pod repo update > /dev/null - pod install @@ -8,6 +11,6 @@ before_script: - xcodebuild -workspace Noosh.xcworkspace -list - instruments -s devices script: - - set -o pipefail + - xcodebuild -workspace Noosh.xcworkspace -scheme Noosh build-for-testing > /dev/null - xctool -workspace Noosh.xcworkspace -scheme Noosh run-tests -test-sdk iphonesimulator10.2 From 9a4300cd1e238f46a909015856444b0ce36ac0f4 Mon Sep 17 00:00:00 2001 From: Amos Chan Date: Tue, 3 Jan 2017 16:26:14 -0500 Subject: [PATCH 3/3] Back to xcodebuild? --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ab5f079..45d68f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,4 @@ before_script: - instruments -s devices script: - xcodebuild -workspace Noosh.xcworkspace -scheme Noosh build-for-testing > /dev/null - - xctool -workspace Noosh.xcworkspace -scheme Noosh run-tests -test-sdk iphonesimulator10.2 - + - xcodebuild -workspace Noosh.xcworkspace -scheme $SCHEME -destination "$DESTINATION" -sdk "$SDK" test