From 9796343174058369d51699bf37bf661d39eb06e5 Mon Sep 17 00:00:00 2001 From: Jurica Cerovec Date: Mon, 27 Jul 2015 23:32:26 +0200 Subject: [PATCH] Added travis script --- .travis.yml | 5 ++ .../xcshareddata/WorkspaceSettings.xcsettings | 8 ++ .../xcschemes/BlinkID-sample.xcscheme | 88 +++++++++++++++++++ .../xcshareddata/WorkspaceSettings.xcsettings | 8 ++ .../xcschemes/NoCamera-sample.xcscheme | 88 +++++++++++++++++++ travis/before_script.sh | 7 ++ travis/script.sh | 30 +++++++ 7 files changed, 234 insertions(+) create mode 100644 .travis.yml create mode 100644 Samples/BlinkID-sample/BlinkID-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 Samples/BlinkID-sample/BlinkID-sample.xcodeproj/xcshareddata/xcschemes/BlinkID-sample.xcscheme create mode 100644 Samples/NoCamera-sample/NoCamera-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 Samples/NoCamera-sample/NoCamera-sample.xcodeproj/xcshareddata/xcschemes/NoCamera-sample.xcscheme create mode 100755 travis/before_script.sh create mode 100755 travis/script.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..798ea2a9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: objective-c + +install: true +before_install: ./travis/before_script.sh +script: ./travis/script.sh \ No newline at end of file diff --git a/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..08de0be8 --- /dev/null +++ b/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded + + + diff --git a/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/xcshareddata/xcschemes/BlinkID-sample.xcscheme b/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/xcshareddata/xcschemes/BlinkID-sample.xcscheme new file mode 100644 index 00000000..acd6a808 --- /dev/null +++ b/Samples/BlinkID-sample/BlinkID-sample.xcodeproj/xcshareddata/xcschemes/BlinkID-sample.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..08de0be8 --- /dev/null +++ b/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded + + + diff --git a/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/xcshareddata/xcschemes/NoCamera-sample.xcscheme b/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/xcshareddata/xcschemes/NoCamera-sample.xcscheme new file mode 100644 index 00000000..2224795e --- /dev/null +++ b/Samples/NoCamera-sample/NoCamera-sample.xcodeproj/xcshareddata/xcschemes/NoCamera-sample.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/travis/before_script.sh b/travis/before_script.sh new file mode 100755 index 00000000..a264dd3d --- /dev/null +++ b/travis/before_script.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +brew update +brew unlink xctool +brew install xctool +brew link --overwrite xctool \ No newline at end of file diff --git a/travis/script.sh b/travis/script.sh new file mode 100755 index 00000000..84d2b9c3 --- /dev/null +++ b/travis/script.sh @@ -0,0 +1,30 @@ +#!/bin/sh +set -e + +xctool -project Samples/BlinkID-sample/BlinkID-sample.xcodeproj \ + -scheme BlinkID-sample \ + -configuration Debug \ + -sdk iphonesimulator \ + ONLY_ACTIVE_ARCH=NO \ + clean build + +xctool -project Samples/BlinkID-sample/BlinkID-sample.xcodeproj \ + -scheme BlinkID-sample \ + -configuration Release \ + -sdk iphonesimulator \ + ONLY_ACTIVE_ARCH=NO \ + clean build + +xctool -project Samples/NoCamera-sample/NoCamera-sample.xcodeproj \ + -scheme NoCamera-sample \ + -configuration Debug \ + -sdk iphonesimulator \ + ONLY_ACTIVE_ARCH=NO \ + clean build + +xctool -project Samples/NoCamera-sample/NoCamera-sample.xcodeproj \ + -scheme NoCamera-sample \ + -configuration Release \ + -sdk iphonesimulator \ + ONLY_ACTIVE_ARCH=NO \ + clean build \ No newline at end of file