This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
74 lines (65 loc) · 1.72 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
66
67
68
69
70
71
72
73
74
sudo: false
language: php
php:
- '5.5'
- '5.6'
- '7.0'
- hhvm
#language: cpp
#compiler:
# - clang
# - gcc
#env:
# - CXX=clang
# - CXX=gcc
addons:
apt:
packages:
# proto3 isn't in packages, so we build it ourselves below
# - libprotobuf-dev
# - protobuf-compiler
# TODO If we want to support c++11 uncomment the following
# # http://stackoverflow.com/a/30925448/88646
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - gcc-4.8
# - g++-4.8
# - clang
before_install:
- ./install-protobuf.sh
# Various exports to use the protobuf shared library in the home dir
- export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH"
- export PATH="$HOME/bin:$PATH"
- export PKG_CONFIG_PATH="$HOME/lib/pkgconfig:$PKG_CONFIG_PATH"
- export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH"
- export CPLUS_INCLUDE_PATH="$HOME/include:$CPLUS_INCLUDE_PATH"
# Enable ccache
- export PATH="/usr/lib/ccache:$PATH"
- composer self-update
install:
# TODO If we want to support c++11 uncomment the following
# - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
- uname -a
- cat /etc/lsb-release
- g++ --version || echo "no g++ found"
- clang++ --version || echo "no clang++ found"
- make --version || echo "no make found"
- automake --version || echo "no automake found"
- autoconf --version || echo "no autoconf found"
- php --version || echo "no php found"
- protoc --version || echo "no protoc found"
- env
script:
- ./autogen.sh && ./configure
- make test
cache:
apt: true
ccache: true
directories:
- tests/vendor
- $HOME/.ccache
- $HOME/.composer/cache
- $HOME/.dist