forked from dinhvh/libetpan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
os: | ||
- osx | ||
- linux | ||
language: c | ||
before_script: travis/before-script.sh | ||
script: travis/script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
sudo apt-get install libsasl2-dev libssl-dev zlib1g-dev | ||
if test "x`uname`" = xLinux ; then | ||
sudo apt-get install libsasl2-dev libssl-dev zlib1g-dev | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
distdir=libetpan-travis-build | ||
./autogen.sh --with-curl=no --disable-db --with-expat=no | ||
make dist distdir=$distdir | ||
tar xzf $distdir.tar.gz | ||
cd $distdir | ||
./configure --with-curl=no --disable-db --with-expat=no | ||
make | ||
cd tests | ||
make imap-sample | ||
if test "x`uname`" = xLinux ; then | ||
distdir=libetpan-travis-build | ||
./autogen.sh --with-curl=no --disable-db --with-expat=no | ||
make dist distdir=$distdir | ||
tar xzf $distdir.tar.gz | ||
cd $distdir | ||
./configure --with-curl=no --disable-db --with-expat=no | ||
make | ||
cd tests | ||
make imap-sample | ||
else | ||
echo Building library for iPhoneOS | ||
xctool -project build-mac/libetpan.xcodeproj -sdk iphoneos7.1 -scheme "libetpan ios" build ARCHS="armv7 armv7s arm64" | ||
echo Building library for iPhoneSimulator | ||
xctool -project build-mac/libetpan.xcodeproj -sdk iphonesimulator7.1 -scheme "libetpan ios" build ARCHS="i386 x86_64" | ||
|
||
echo Building library for Mac | ||
xctool -project build-mac/libetpan.xcodeproj -sdk macosx10.8 -scheme "static libetpan" build | ||
echo Building framework for Mac | ||
xctool -project build-mac/libetpan.xcodeproj -sdk macosx10.8 -scheme "libetpan" build | ||
fi |