fixes #414: build Travis on both Linux & OS X (including for iOS)
This commit is contained in:
27
scripts/travis_script.sh
Executable file
27
scripts/travis_script.sh
Executable 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
|
||||
Reference in New Issue
Block a user