aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2014-10-21 22:25:14 -0700
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2014-10-21 22:25:14 -0700
commit58383899107bbe80dfaa7b821d269593dd780b29 (patch)
tree284fe7bbe4660b5c4693d842de6508975177e6ef /scripts
parent07c3f88074b792b7167e7e78ea384312c393a1ee (diff)
parent5216f330753f9f6548def45677286bca028be239 (diff)
Merge pull request #926 from MailCore/unittest
Unittest for message parser and builder
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis/script.sh32
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