.travis.yml 2.07 KB
Newer Older
1
# .travis.yml
2 3 4
# Configure Travis CI service to build SOCI library, http://github.com/SOCI
#
# Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net>
5
#
6
# TODO: Switch to Trusty https://github.com/SOCI/soci/issues/574
7
dist: precise
8
language: cpp
9 10 11

sudo: required

12
compiler:
13 14
    - g++
    - clang
15

16
services:
17 18
    - mysql
    - postgresql
19

20
env:
21 22 23 24 25 26 27 28 29 30
    global:
        - secure: "I7/28jg7R24y64426d5XsfILrd/VW0BdwFbNpEgBfW1qNk9GpkNGTvp/ET6hKwBVrW5jmN9QdEviGcPpQRIAlMj6g9GvZeAUxM+VZTcXD2u30REUPPxNTJMRVHPfL9DA7EMFCST8SjBCgMdTHFwqLV4vSQEF4NTXbntley/IPfM="
    matrix:
        - SOCI_TRAVIS_BACKEND=db2
        - SOCI_TRAVIS_BACKEND=empty
        - SOCI_TRAVIS_BACKEND=firebird
        - SOCI_TRAVIS_BACKEND=mysql
        - SOCI_TRAVIS_BACKEND=odbc
        - SOCI_TRAVIS_BACKEND=postgresql
        - SOCI_TRAVIS_BACKEND=sqlite3
31
        - SOCI_TRAVIS_BACKEND=valgrind
32
        - SOCI_TRAVIS_BACKEND=oracle WITH_BOOST=OFF
33 34

addons:
35 36 37 38 39 40
    apt:
        sources:
            - ubuntu-toolchain-r-test
            - kalakris-cmake
        packages:
            - cmake
41 42 43
    coverity_scan:
        project:
            name: "SOCI/soci"
44 45 46
        notification_email: soci-devel@lists.sourceforge.net
        build_command_prepend: "mkdir build.cov; cd build.cov; cmake .."
        build_command: "make -j 4"
47
        branch_pattern: coverity_scan
48

49 50 51
before_install: ./scripts/travis/before_install.sh
before_script: ./scripts/travis/before_script.sh
script: ./scripts/travis/script.sh
52

53
notifications:
54 55 56 57 58
    #email:
    #    recipients:
    #        - soci-devel@lists.sourceforge.net
    #    on_success: change # [always|never|change] # default: change
    #    on_failure: always # [always|never|change] # default: always
59 60 61 62 63 64 65 66 67
    irc:
        channels:
            - "irc.freenode.org#soci"
    webhooks:
        urls:
            - https://webhooks.gitter.im/e/379a56f450b22684c051 # SOCI unique webhook url for this service
        on_success: always  # options: [always|never|change] default: always
        on_failure: always  # options: [always|never|change] default: always
        on_start: always     # options: [always|never|change] default: always