diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-21 21:00:15 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-21 21:00:15 -0700 |
commit | 5216f330753f9f6548def45677286bca028be239 (patch) | |
tree | b9ba9f1dfe961207bcf4a1bd1cad6653e98e2732 /scripts | |
parent | c58220701ada0ccca85cd290a57b3e2277537b75 (diff) |
Travis runs unit tests
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis/script.sh | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/scripts/travis/script.sh b/scripts/travis/script.sh index 3473452b..9d52ae19 100755 --- a/scripts/travis/script.sh +++ b/scripts/travis/script.sh @@ -1,33 +1,39 @@ #!/bin/sh set -e +IPHONESDK=iphoneos8.0 +SIMULATORSDK=iphonesimulator8.0 +MACSDK=macosx10.9 + echo Operating system: uname -mkdir -p Externals/prebuilt -cd Externals/prebuilt -git clone --depth=1 https://github.com/MailCore/mailcore2-deps -cd ../.. -cp Externals/prebuilt/mailcore2-deps/prebuilt.list scripts/prebuilt.list -mkdir -p Externals/builds/builds -rsync --exclude=.git -av Externals/prebuilt/mailcore2-deps/ Externals/builds/builds/ +# mkdir -p Externals/prebuilt +# cd Externals/prebuilt +# git clone --depth=1 https://github.com/MailCore/mailcore2-deps +# cd ../.. +# cp Externals/prebuilt/mailcore2-deps/prebuilt.list scripts/prebuilt.list +# mkdir -p Externals/builds/builds +# rsync --exclude=.git -av Externals/prebuilt/mailcore2-deps/ Externals/builds/builds/ if test x"`uname`" = xDarwin ; then echo Building library for iPhoneOS - xctool -project build-mac/mailcore2.xcodeproj -sdk iphoneos8.0 -scheme "static mailcore2 ios" build ARCHS="armv7 armv7s arm64" + xctool -project build-mac/mailcore2.xcodeproj -sdk $IPHONESDK -scheme "static mailcore2 ios" build ARCHS="armv7 armv7s arm64" echo Building library for iPhoneSimulator - xctool -project build-mac/mailcore2.xcodeproj -sdk iphonesimulator8.0 -scheme "static mailcore2 ios" build ARCHS="i386 x86_64" + xctool -project build-mac/mailcore2.xcodeproj -sdk $SIMULATORSDK -scheme "static mailcore2 ios" build ARCHS="i386 x86_64" #echo Link test for iPhoneOS #xcodebuild -project build-mac/mailcore2.xcodeproj -sdk iphoneos7.1 -target "test-ios" CODE_SIGN_IDENTITY="" build echo Link test for iPhoneSimulator - xctool -project build-mac/mailcore2.xcodeproj -sdk iphonesimulator8.0 -scheme "test-ios" build ARCHS="i386 x86_64" + xctool -project build-mac/mailcore2.xcodeproj -sdk $SIMULATORSDK -scheme "test-ios" build ARCHS="i386 x86_64" echo Building library for Mac - xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "static mailcore2 osx" build + xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "static mailcore2 osx" build echo Building framework for Mac - xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "mailcore osx" build + xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "mailcore osx" build echo Link test for Mac - xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "tests" build + xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "tests" build + echo Unit Tests for Mac + xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "unittest" test fi echo Testing CMake build |