forked from akopytov/sysbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (58 loc) · 1.4 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# vim ft=yaml
#
# Travis CI configuration
language: c
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
packages:
- libmysqlclient-dev
- libpq-dev
- libaio-dev
services:
- mysql
- postgresql
before_install:
- >
case "${TRAVIS_OS_NAME:-linux}" in
osx)
# Workaround for https://github.com/Homebrew/legacy-homebrew/issues/43874
brew uninstall libtool
brew update --quiet
brew install libtool mysql
# OS X requires servers to be started explicitly
brew services start mysql
# Avoid PostgreSQL upgrade woes, just recreate the database
rm -rf /usr/local/var/postgres
brew postinstall postgresql
pg_ctl -wD /usr/local/var/postgres start
createuser -s postgres
;;
esac
install:
- pip install --user cram cpp-coveralls
- >
case "${TRAVIS_OS_NAME:-linux}" in
osx)
# OS X requires this for user-local pip packages
export PATH=~/Library/Python/2.7/bin:$PATH
;;
esac
before_script:
- mysql -u root -e 'CREATE DATABASE sbtest'
- psql -U postgres -c 'CREATE DATABASE sbtest'
script:
- ./autogen.sh && ./configure --enable-coverage --with-mysql --with-pgsql
- make
- make distcheck
- SBTEST_MYSQL_ARGS="--mysql-user=root" SBTEST_PGSQL_ARGS="--pgsql-user=postgres" make test
after_success:
- coveralls --gcov-options '\-lp'
# Local variables:
# mode: yaml
# End: