File: .travis.yml

package info (click to toggle)
libvmime 0.9.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,552 kB
  • sloc: cpp: 55,419; ansic: 822; makefile: 88; sh: 8
file content (37 lines) | stat: -rw-r--r-- 1,415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Travis-CI build file for VMime
# See http://travis-ci.org for details

language: cpp

compiler:
  - gcc
  - clang

# Settings
env:
  # -- 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"

# Make sure some required tools/libraries are installed
install:
  - sudo apt-get update >/dev/null
  - sudo apt-get -q install cmake libcppunit-dev valgrind
  - sudo apt-get -q install libgsasl7-dev libgnutls-dev libssl-dev libicu-dev libboost-dev
  # -- for the samples
  - sudo apt-get -q install libgtk-3-dev

# Run the build script
script:
  - mkdir _build
  - cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
  - cmake .. -L
  - cat ./src/vmime/config.hpp
  - cat ./src/vmime/export-shared.hpp
  - cat ./src/vmime/export-static.hpp
  - cmake --build . --target install
  - ctest