-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (42 loc) · 1.61 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
language: c
matrix:
include:
- os: linux
services:
- docker
script:
- |
bash -c "while true; do echo \$(date) - travis building ...; sleep 540; done" &
export PING_LOOP_PID=$!
- |
cat <<-EOF | docker run -i ubuntu:16.04 bash -
set -e
apt-get -y update
apt-get install -y software-properties-common python-software-properties
add-apt-repository -y ppa:brightbox/ruby-ng-experimental
apt-get -y update
apt-get -y install build-essential sudo openssh-server git curl rake \
ruby2.0 ruby2.0-dev bison libcurl4-openssl-dev libhiredis-dev libmarkdown2-dev \
libcap-dev libcgroup-dev make libpcre3 libpcre3-dev libmysqlclient-dev
git clone https://github.com/asdf-vm/asdf.git
. asdf/asdf.sh
export ASDF_CONCURRENCY=4
asdf plugin-test ngx_mruby https://github.com/beijingrb/asdf-ngx_mruby 'nginx -v'
EOF
after_script:
- kill -9 $PING_LOOP_PID
- os: osx
before_script:
- git clone https://github.com/asdf-vm/asdf.git
- . asdf/asdf.sh
- brew update
- brew install openssl pcre curl
- cd /usr/local/include && ln -s ../opt/openssl/include/openssl .
script:
- |
bash -c "while true; do echo \$(date) - travis building ...; sleep 540; done" &
export PING_LOOP_PID=$!
- export ASDF_CONCURRENCY=4
- asdf plugin-test ngx_mruby https://github.com/beijingrb/asdf-ngx_mruby.git 'nginx -v'
after_script:
- kill -9 $PING_LOOP_PID