2013-03-06 21:17:20 +00:00
|
|
|
# Travis-CI build file for VMime
|
|
|
|
# See http://travis-ci.org for details
|
|
|
|
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
|
|
|
# Settings
|
|
|
|
env:
|
2013-10-20 11:24:34 +00:00
|
|
|
# -- default configuration (iconv + GnuTLS)
|
|
|
|
- CTEST_OUTPUT_ON_FAILURE=1 OPTIONS="-DVMIME_SENDMAIL_PATH=/path/to/sendmail -DCMAKE_BUILD_TYPE=Debug -DVMIME_BUILD_TESTS=ON -DVMIME_BUILD_SAMPLES=ON"
|
|
|
|
# -- ICU
|
|
|
|
- CTEST_OUTPUT_ON_FAILURE=1 OPTIONS="-DVMIME_SENDMAIL_PATH=/path/to/sendmail -DCMAKE_BUILD_TYPE=Debug -DVMIME_BUILD_TESTS=ON -DVMIME_BUILD_SAMPLES=ON -DVMIME_CHARSETCONV_LIB_IS_ICONV=OFF -DVMIME_CHARSETCONV_LIB_IS_ICU=ON"
|
|
|
|
# -- OpenSSL
|
|
|
|
- CTEST_OUTPUT_ON_FAILURE=1 OPTIONS="-DVMIME_SENDMAIL_PATH=/path/to/sendmail -DCMAKE_BUILD_TYPE=Debug -DVMIME_BUILD_TESTS=ON -DVMIME_BUILD_SAMPLES=ON -DVMIME_TLS_SUPPORT_LIB_IS_GNUTLS=OFF -DVMIME_TLS_SUPPORT_LIB_IS_OPENSSL=ON"
|
2013-03-06 21:17:20 +00:00
|
|
|
|
2013-03-06 21:30:27 +00:00
|
|
|
# Make sure some required tools/libraries are installed
|
2013-03-06 21:17:20 +00:00
|
|
|
install:
|
|
|
|
- sudo apt-get update >/dev/null
|
2013-03-11 10:46:10 +00:00
|
|
|
- sudo apt-get -q install cmake libcppunit-dev valgrind
|
2013-11-21 21:41:51 +00:00
|
|
|
- sudo apt-get -q install libgsasl7-dev libgnutls-dev libssl-dev libicu-dev libboost-dev
|
2013-10-20 11:24:34 +00:00
|
|
|
# -- for the samples
|
|
|
|
- sudo apt-get -q install libgtk-3-dev
|
2013-03-06 21:17:20 +00:00
|
|
|
|
|
|
|
# Run the build script
|
|
|
|
script:
|
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
|
|
|
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
|
2013-05-13 06:57:37 +00:00
|
|
|
- cmake .. -L
|
2016-03-25 07:25:43 +00:00
|
|
|
- cat ./src/vmime/config.hpp
|
|
|
|
- cat ./src/vmime/export-shared.hpp
|
|
|
|
- cat ./src/vmime/export-static.hpp
|
2013-03-06 21:17:20 +00:00
|
|
|
- cmake --build . --target install
|
2013-03-11 10:36:13 +00:00
|
|
|
- ctest
|