-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
81 lines (78 loc) · 2.24 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
73
74
75
76
77
78
79
80
81
sudo: required
notifications:
email:
recipients:
language: cpp
compiler:
- gcc
- clang
env:
global:
- MLPL_LOGGER_LEVEL=WARN
- NO_MAKE=yes
- TEST_AMQP_URL="amqp://test_user:test_password@localhost:5673/test"
matrix:
- RUN_TEST="test/run-server-test-misc.sh"
matrix:
include:
- compiler: gcc
env: RUN_TEST="test/run-server-test-core.sh ^test[A-C]"
- compiler: gcc
env: RUN_TEST="test/run-server-test-core.sh ^test[D]"
- compiler: gcc
env: RUN_TEST="test/run-server-test-core.sh ^test[E-H]"
- compiler: gcc
env: RUN_TEST="test/run-server-test-core.sh ^test[^A-H]"
- compiler: gcc
env: RUN_TEST="test/dist-check.sh"
- compiler: gcc
env: RUN_TEST="test/run-client-test.sh"
- compiler: gcc
env: RUN_TEST="test/feature-test.sh"
addons:
apt:
packages:
- autotools-dev
- autoconf-archive
- libglib2.0-dev
- libjson-glib-dev
- libsoup2.4-dev
- libmysqlclient-dev
- sqlite3
- ndoutils-nagios3-mysql
- uuid-dev
- python-pip
- expect
- python-dev
- rabbitmq-server
- python-mysqldb
- python-pika
- gettext
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- nvm install 7
install:
- server/misc/setup-cutter.sh
- server/misc/setup-librabbitmq-ppa.sh
- sudo sh -c "printf '[%s]\n%s=%s\n' mysqld character-set-server utf8 > /etc/mysql/conf.d/utf8.cnf"
- sudo sh -c "printf '[%s]\n%s=%s\n' client default-character-set utf8 >> /etc/mysql/conf.d/utf8.cnf"
- mysql -u root < data/test/setup.sql
- travis_retry npm install
- sudo pip install django==1.6.11
- sudo pip install daemon
- sudo pip install python-mk-livestatus
- sudo server/misc/setup-rabbitmq-server-port.sh
- sudo service rabbitmq-server restart
before_script:
- ./autogen.sh
- ./configure
- make -j `nproc`
- sudo chmod +r /var/log/syslog
- sudo chmod 777 /var/run
script:
- echo $RUN_TEST; eval "$RUN_TEST"