Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
289 changed files
with
46,138 additions
and
12,088 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
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
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,25 +1,36 @@ | ||
language: objective-c | ||
os: osx | ||
osx_image: xcode10.1 | ||
xcode_workspace: Tesseract-OCR-iOS.xcworkspace | ||
# these sdks are not yet supported in xcode7 build envirenment | ||
xcode_sdk: | ||
# - iphonesimulator7.1 | ||
# - iphonesimulator8.1 | ||
# - iphonesimulator9.0 | ||
- iphonesimulator12.1 | ||
xcode_scheme: | ||
#- Template Framework Project | ||
#- TestsProject | ||
osx_image: xcode10.2 | ||
sudo: false | ||
|
||
env: | ||
- BUILD_DEPENDENT_LIBRARIES=true | ||
- BUILD_DEPENDENT_LIBRARIES=false | ||
- iOS= DST='platform=iOS Simulator,name=iPhone Xs' ACTION=test DEVICE='iPhone Xs (12.2)' XC_SCHEME=Tests-iOS LIB_SCHEME=TesseractOCR BUILD_DEPENDENT_LIBRARIES=true | ||
- iOS= DST='platform=iOS Simulator,name=iPhone Xs' ACTION=test DEVICE='iPhone Xs (12.2)' XC_SCHEME=Tests-iOS LIB_SCHEME=TesseractOCR BUILD_DEPENDENT_LIBRARIES=false | ||
- macOS= DST='platform=OS X' ACTION=test XC_SCHEME=Tests-macOS LIB_SCHEME=TesseractOCRmacOS BUILD_DEPENDENT_LIBRARIES=true | ||
- macOS= DST='platform=OS X' ACTION=test XC_SCHEME=Tests-macOS LIB_SCHEME=TesseractOCRmacOS BUILD_DEPENDENT_LIBRARIES=false | ||
|
||
before_install: | ||
- gem install cocoapods -v '1.5.3' | ||
- brew uninstall xctool | ||
- brew install xctool --HEAD | ||
- xctool --version | ||
- ./scripts/before_install.sh | ||
- gem install xcpretty --no-document | ||
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "$DEVICE \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/") | ||
- echo "$SIMULATOR_ID" | ||
- ./scripts/before_install.sh | ||
|
||
script: | ||
- set -o pipefail | ||
- xcodebuild -version | ||
- xcodebuild -workspace Tesseract-OCR-iOS.xcworkspace -list | ||
- if [ "$DST" != "platform=OS X" ]; then | ||
echo "$SIMULARTOR_ID"; | ||
open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID || true; sleep 20; | ||
fi | ||
- if [ "$BUILD_DEPENDENT_LIBRARIES" = "true" ]; then | ||
brew uninstall --ignore-dependencies openjpeg webp; | ||
brew install automake autoconf autoconf-archive libtool pkgconfig icu4c; | ||
cd TesseractOCR && make clean && cd ..; | ||
rm -rfv TesseractOCR/{ios,macos}/lib/*.a; | ||
xcodebuild -scheme "$LIB_SCHEME" -destination "$DST" -workspace "Tesseract-OCR-iOS.xcworkspace" BUILD_DEPENDENT_LIBRARIES=true clean build; | ||
fi | ||
- xcodebuild -scheme "$XC_SCHEME" -destination "$DST" -workspace "Tesseract-OCR-iOS.xcworkspace" clean build | xcpretty -tc | ||
- xcodebuild -scheme "$XC_SCHEME" -destination "$DST" -workspace "Tesseract-OCR-iOS.xcworkspace" -enableCodeCoverage YES $ACTION | xcpretty -tc | ||
|
||
after_success: | ||
./scripts/coveralls.rb --extension m --extension mm --exclude-folder include --exclude-folder TestsProject | ||
./scripts/coveralls.rb --extension m --extension mm --exclude-folder include --exclude-folder Tests --exclude-folder Tests-iOS --exclude-folder Tests-macOS |
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
91 changes: 91 additions & 0 deletions
91
Examples/Example Swift/Example Swift.xcodeproj/xcshareddata/xcschemes/Example Swift.xcscheme
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,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1020" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F9A489EC2037776A00887BDC" | ||
BuildableName = "Example Swift.app" | ||
BlueprintName = "Example Swift" | ||
ReferencedContainer = "container:Example Swift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F9A489EC2037776A00887BDC" | ||
BuildableName = "Example Swift.app" | ||
BlueprintName = "Example Swift" | ||
ReferencedContainer = "container:Example Swift.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F9A489EC2037776A00887BDC" | ||
BuildableName = "Example Swift.app" | ||
BlueprintName = "Example Swift" | ||
ReferencedContainer = "container:Example Swift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "F9A489EC2037776A00887BDC" | ||
BuildableName = "Example Swift.app" | ||
BlueprintName = "Example Swift" | ||
ReferencedContainer = "container:Example Swift.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
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
Oops, something went wrong.