forked from chronolaw/openresty_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (36 loc) · 1.09 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
sudo: required
dist: trusty
os: linux
notifications:
email: false
addons:
hosts:
- www.chrono.com
- www.metroid.net
#language: c
#compiler:
cache:
cpan: true
apt: true
env:
global:
- LUAJIT_LIB=/usr/lib64/libluajit-5.1.so
- LUAJIT_INC=/usr/include/luajit-2.0
- OPENRESTY_PATH=/usr/local/openresty
before_install:
- sudo apt-get install -qq -y cpanminus libluajit-5.1-dev libgd-dev
- sudo cpanm -v --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1)
install:
- wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
- sudo apt-get -y install software-properties-common
- sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
- sudo apt-get update
- sudo apt-get install openresty
script:
- ./setup.sh
- sudo ${OPENRESTY_PATH}/bin/openresty -V
- sudo ${OPENRESTY_PATH}/bin/openresty -s stop
- sudo ./run.sh > build.log 2>&1 || (cat build.log && exit 1)
- export PATH=$PATH:${OPENRESTY_PATH}/nginx/sbin
- prove -r t
- sudo ./run.sh stop > build.log 2>&1 || (cat build.log && exit 1)