-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (47 loc) · 1.49 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
language: c
compiler:
- gcc
env:
- VER_NEWRELIC_C_SDK=1.3.0 VER_OPENRESTY=1.19.9.1
addons:
apt:
packages:
- lua5.1
- libreadline-dev
- libncurses5-dev
- libpcre3-dev
- libssl-dev
- lua5.1-dev
- luarocks
- libssl-dev
- build-essential
- lua-bit32
- lua-bit32-dev
- perl
- npm
- nodejs
before_install:
- sudo apt-get update
install:
- mkdir ./vendor && cd ./vendor
- wget http://openresty.org/download/openresty-${VER_OPENRESTY}.tar.gz && tar -xf openresty-${VER_OPENRESTY}.tar.gz
- cd openresty-${VER_OPENRESTY}/
- ./configure --prefix=/opt/openresty && make && sudo make install && cd ..
- export PATH=/opt/openresty/nginx/sbin:$PATH
- wget https://github.com/newrelic/c-sdk/archive/refs/tags/v${VER_NEWRELIC_C_SDK}.tar.gz && tar -xf "v${VER_NEWRELIC_C_SDK}.tar.gz"
- cd c-sdk-${VER_NEWRELIC_C_SDK}
- make
- ar -x libnewrelic.a
- gcc -shared -lpcre -lm -lpthread -rdynamic *.o -o libnewrelic.so
- sudo mkdir -p /usr/local/lib && sudo cp libnewrelic.so /usr/local/lib/
- sudo ldconfig
- cd ../../
- mkdir -p util/include/axiom
- cp vendor/c-sdk-${VER_NEWRELIC_C_SDK}/include/* util/include/
- cp vendor/c-sdk-${VER_NEWRELIC_C_SDK}/vendor/newrelic/axiom/*.h util/include/axiom/
- cd util && make && sudo cp libnewrelic.so /usr/local/lib/libnewrelic.so && cd ../
- sudo ldconfig
- sudo npm install typescript -g
- export PERL_MM_USE_DEFAULT=1
- sudo cpan Test::Nginx
script: make test