diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-05-18 12:38:50 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-05-18 19:48:18 -0700 |
commit | a847a3fc9a6c39237131252e6fdfece8953fc915 (patch) | |
tree | 3e8aab6df2620f7607b70aa4f5786a38bcbf1128 /scripts/travis/before-script.sh | |
parent | 549a08ce9c709327e7a9bc37ac5ffa975a7fea7b (diff) |
Travis build for multi-OS
Diffstat (limited to 'scripts/travis/before-script.sh')
-rwxr-xr-x | scripts/travis/before-script.sh | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/scripts/travis/before-script.sh b/scripts/travis/before-script.sh index b8753159..99966882 100755 --- a/scripts/travis/before-script.sh +++ b/scripts/travis/before-script.sh @@ -1,6 +1,23 @@ #!/bin/sh set -e -brew update -#brew install xctool -brew install cmake +if test x"`uname`" = xDarwin ; then + brew update + brew install cmake +elif test x"`uname`" = xLinux ; then + git clone --depth=1 https://github.com/dinhviethoa/libetpan + cd libetpan + ./autogen.sh + make >/dev/null + sudo make install >/dev/null + cd .. + + sudo apt-get install libctemplate-dev + sudo apt-get install libicu-dev + sudo apt-get install libctemplate-dev + sudo apt-get install libsasl2-dev + sudo apt-get install libtidy-dev + sudo apt-get install uuid-dev + sudo apt-get install libxml2-dev +fi + |