-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (34 loc) · 1023 Bytes
/
.travis.yml
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
38
39
40
41
42
43
44
# .travis.yml - config file SOCI CI at https://travis-ci.org/
language: cpp
compiler:
- g++
branches:
only:
- master
services:
- mysql
- postgresql
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-dev libboost-date-time-dev
before_script:
- mysql --version
- mysql -e 'create database soci_test;'
- psql --version
- psql -c 'create database soci_test;' -U postgres
script:
- mkdir -p src/build
- cd src/build
- cmake -DSOCI_TESTS=ON -DSOCI_EMPTY_TEST_CONNSTR:STRING="dummy connection" -DSOCI_MYSQL_TEST_CONNSTR:STRING="db=soci_test" -DSOCI_POSTGRESQL_TEST_CONNSTR:STRING="dbname=soci_test user=postgres" -DSOCI_SQLITE3_TEST_CONNSTR:STRING="soci_test.db" ..
- cmake --build .
after_script:
- ctest -V .
notifications:
email:
recipients:
on_success: always # [always|never|change] # default: change
on_failure: always # [always|never|change] # default: always
irc:
channels:
- "irc.freenode.org#soci"