fixes #414: build Travis on both Linux & OS X (including for iOS)

This commit is contained in:
Justin R. Miller
2014-08-15 17:34:41 -07:00
parent f0f01b334a
commit 5ff80c711f
8 changed files with 55 additions and 27 deletions

27
scripts/travis_script.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
#
# build & test Linux
#
make linux -j4 BUILDTYPE=${BUILDTYPE}
make test -j4 BUILDTYPE=${BUILDTYPE}
cd build/Testing
for TEST in ./test_* ; do
${TEST}
done
cd ../..
(cd ./node_modules/mapbox-gl-test-suite/ && (./bin/compare_images.js; ./bin/deploy_results.sh))
elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
#
# build OS X
#
make xproj-cli
xcodebuild -project ./build/macosx/mapboxgl-app.xcodeproj
#
# build iOS
#
git clone --depth 1 https://github.com/mapbox/mapbox-gl-cocoa ios/mapbox-gl-cocoa
make iproj-cli
xcodebuild -project ./build/ios/mapbox-gl-cocoa/app/mapboxgl-app.xcodeproj -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
fi