forked from sustrik/dsock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (45 loc) · 1.2 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
language: c
sudo: false
os:
- osx
- linux
dist: trusty
env:
matrix:
- CONF="shared"
- CONF="static"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:ondrej/php'
packages:
- gcc-4.9
- clang
- openssl
- libssl-dev
branches:
only:
- master
before_install:
- '[ `type -P brew` ] && brew install openssl --force || ``'
- export {opt=`pwd`/opt,ssl=/usr/local/Cellar/openssl/1.0.2j}
- export {CFLAGS=-I$opt/include,LDFLAGS=-L$opt/lib}
- git clone --depth 1 https://github.com/zewo/libdill && cd libdill
- ./autogen.sh && ./configure --prefix=$opt && make && make install
- cd $opt/lib
- '[ `type -P brew` ] && for i in $(ls $ssl/lib/lib*); do ln -s $i; done || ``'
- cd $opt/include
- '[ `type -P brew` ] && ln -s $ssl/include/openssl || ``'
- cd ../.. && ./autogen.sh
install:
- if [[ $CONF == "shared" ]]; then ./configure --prefix=$opt --enable-tls; fi
- if [[ $CONF == "static" ]]; then ./configure --prefix=$opt --disable-shared --enable-tls; fi
- make
script:
- make check
after_failure:
- for f in tests/*.log; do echo; echo "${f}:"; cat $f; done;
- cat test-suite.log
notifications:
email: false