-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (49 loc) · 1.69 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
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
before_install:
- sudo apt-get -qq update
- pip install --user cpp-coveralls
install:
- sudo apt-get -qq install autoconf automake autotools-dev libtool pkg-config libssl-dev tcl-dev libexpat1-dev libpcre3-dev libmodule-install-perl
- sudo apt-get -qq install ruby
before_script:
- echo '-------------------------------'
- echo 'Build and install TrafficServer'
- echo '-------------------------------'
- wget -O trafficserver-7.0.0.tar.bz2 http://ftp.jaist.ac.jp/pub/apache/trafficserver/trafficserver-7.0.0.tar.bz2
- tar xf trafficserver-7.0.0.tar.bz2
- cd trafficserver-7.0.0
- autoreconf -if
- ./configure --disable-tests
- make -j2
- sudo make install
- cd ../
script:
- autoreconf -if
- ./configure --enable-coverage --with-ts-prefix-root=/usr/local/
- echo '-------------------------------'
- echo 'Build mruby'
- echo '-------------------------------'
- CFLAGS="-fPIC" make build_mruby
- echo '-------------------------------'
- echo 'Build ts_mruby'
- echo '-------------------------------'
- make
- sudo make install
- echo '-------------------------------'
- echo 'Run unit test'
- echo '-------------------------------'
- make test 2> /dev/null
- echo '-------------------------------'
- echo 'Run functional test'
- echo '-------------------------------'
- sudo ldconfig
- sudo chmod 777 -R /usr/local/etc/trafficserver/
- sudo chmod 777 -R /usr/local/var/trafficserver/
- sudo chmod 777 -R /usr/local/var/log/
- ATS_PREFIX=/usr/local/ sh ./t.sh
after_success:
- coveralls -i src/ -b test/ -E '.*\/libs\/.*' -E '.*\/include\/.*' -E '.*\/googletest\/.*' --gcov-options '\-lp'