Skip to content

Commit e442eac

Browse files
committed
Initial Travis CI config
1 parent c7685a4 commit e442eac

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.travis.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
language: php
2+
3+
dist: trusty
4+
sudo: required
5+
6+
php:
7+
- 5.4
8+
- 5.5
9+
- 5.6
10+
- 7.0
11+
- 7.1
12+
13+
git:
14+
depth: 1
15+
16+
compiler:
17+
- gcc
18+
- clang
19+
20+
env:
21+
global:
22+
- LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LD_LIBRARY_PATH
23+
- LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LIBRARY_PATH
24+
- C_INCLUDE_PATH="$TRAVIS_BUILD_DIR/build/include"
25+
matrix:
26+
- CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden"
27+
- CC="ccache clang" CFLAGS="-g3 -O0"
28+
29+
matrix:
30+
fast_finish: true
31+
allow_failures:
32+
- php: nightly
33+
include:
34+
- env: CC="ccache gcc" CFLAGS="-g3 -O0 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden"
35+
php: nightly
36+
compiler: gcc
37+
- env: CC="ccache clang" CFLAGS="-g3 -O0"
38+
php: nightly
39+
compiler: clang
40+
41+
cache:
42+
apt: true
43+
ccache: true
44+
timeout: 691200
45+
directories:
46+
- vendor
47+
- $HOME/.ccache
48+
- $HOME/.composer/cache
49+
50+
install:
51+
- bash ./build-linux
52+
53+
before_install:
54+
- if [[ ! -z "${GH_TOKEN}" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; echo "Configured Github token"; fi;
55+
56+
script:
57+
- php -m
58+
59+
notifications:
60+
email:
61+
- build@phalconphp.com
62+
63+
addons:
64+
apt:
65+
packages:
66+
- re2c
67+
- valgrind
68+
- gdb

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Zephir Parser
22

3+
[![Build Status](https://travis-ci.org/phalcon/php-zephir-parser.svg?branch=master)](https://travis-ci.org/phalcon/php-zephir-parser)
4+
35
Zephir Parser delivered as a C extension for the PHP language.
46

57
## Get Started

0 commit comments

Comments
 (0)