Skip to content

Commit

Permalink
Slightly optimise CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hamchapman committed Apr 1, 2019
1 parent b09d5f0 commit d8c9c92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ env:
- macOS= DST='platform=OS X' ACTION=test XC_SCHEME=Tests-macOS LIB_SCHEME=TesseractOCRmacOS BUILD_DEPENDENT_LIBRARIES=false

before_install:
- gem install cocoapods
- gem install xcpretty --no-document
- brew install automake autoconf autoconf-archive libtool pkgconfig icu4c
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "$DEVICE \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
- echo "$SIMULATOR_ID"
- ./scripts/before_install.sh
Expand All @@ -25,6 +23,7 @@ script:
open -a "simulator" --args -CurrentDeviceUDID $SIMULATOR_ID || true; sleep 20;
fi
- if [ "$BUILD_DEPENDENT_LIBRARIES" = "true" ]; then
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 "platform=OS X" -workspace "Tesseract-OCR-iOS.xcworkspace" BUILD_DEPENDENT_LIBRARIES=true clean build;
Expand Down

0 comments on commit d8c9c92

Please sign in to comment.