forked from h2o/quicly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (63 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: c
cache: ccache
env:
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: linux
dist: trusty
sudo: required
env:
- label=linux/x86-64
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update --yes
- sudo apt-get install --yes -f gcc-6 g++-6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
- sudo apt-get install libjson-perl libscope-guard-perl libtest-tcp-perl
script:
# Cmake 2.8.12
- curl -O https://cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
- tar -xf cmake-2.8.12.1.tar.gz
- cd cmake-2.8.12.1
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_CursesDialog=OFF -DBUILD_TESTING=OFF .
- make
- sudo make install
- cd ..
# OpenSSL 1.0.2
- curl -O https://www.openssl.org/source/openssl-1.0.2l.tar.gz
- tar -xf openssl-1.0.2l.tar.gz
- cd openssl-1.0.2l
- ./config --prefix=$HOME/openssl-build
- make
- make install
- cd ..
- cmake -DOPENSSL_ROOT_DIR=$HOME/openssl-build -DWITH_DTRACE=OFF .
- make && make check
- os: osx
osx_image: xcode6.4
env:
- label=osx10.10/x86-64-dtrace
before_install: &bs_osx
- curl -L https://cpanmin.us | sudo perl - App::cpanminus
- sudo cpanm --notest JSON
- sudo cpanm --notest Scope::Guard
- sudo cpanm --notest Test::TCP
script:
- cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .
- make && make check
- os: osx
env:
- label=osx10.10/i386
before_install: *bs_osx
script:
- curl -O https://www.openssl.org/source/openssl-1.1.0i.tar.gz
- tar -xf openssl-1.1.0i.tar.gz
- cd openssl-1.1.0i
- KERNEL_BITS=32 ./config --prefix=$HOME/openssl-build
- make
- make install
- cd ..
- cmake -DCMAKE_C_FLAGS=-m32 -DOPENSSL_ROOT_DIR=$HOME/openssl-build -DWITH_DTRACE=OFF .
- make && make check