forked from deweerdt/h2get
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (46 loc) · 1.43 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
language: c
cache: ccache
env:
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: linux
dist: trusty
sudo: required
before_install: &bi
- 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
script: &s
# 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/local -DBUILD_CursesDialog=OFF -DBUILD_TESTING=OFF .
- make && sudo make install
- cd ..
# LibreSSL
- curl -O https://mirrors.sonic.net/pub/OpenBSD/LibreSSL/libressl-2.5.4.tar.gz
- tar -xf libressl-2.5.4.tar.gz
- cd libressl-2.5.4
- ./configure --prefix=$HOME/libressl-build
- make
- make install
- cd ..
# H2GET
- cmake -DH2GET_SSL_ROOT_DIR=$HOME/libressl-build .
- make
- make test
- ./h2get firefox.rb www.fastly.com
- os: linux
dist: xenial
sudo: required
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update --yes
script: *s
- os: macosx
sudo: required
script: *s