forked from treeleaf/php-nano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 845 Bytes
/
.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
language: php
php:
- 5.5
- 5.6
- 7.0
os:
- linux
# - osx
compiler:
- gcc
- clang
notifications:
email: false
before_script:
- git clone https://github.com/nanomsg/nanomsg.git
- cd nanomsg
- mkdir build
- cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=${HOME}/nanomsg-master
- cmake --build .
- cmake --build . --target install
- ls -l ${HOME}/nanomsg-master/include/nanomsg
script:
- cd ${TRAVIS_BUILD_DIR}
- phpize
- ./configure --with-nano="${HOME}/nanomsg-master"
- make
- export NO_INTERACTION=1
- export REPORT_EXIT_STATUS=1
- export TEST_PHP_EXECUTABLE=`which php`
- php run-tests.php -d extension=nano.so -d extension_dir=modules -n ./tests/*.phpt
- for i in `ls tests/*.out 2>/dev/null`; do echo "-- START ${i}"; cat $i; echo "-- END"; done