forked from neatlife/php-h3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (51 loc) · 1.05 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
sudo: required
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
env: CC=gcc
matrix:
allow_failures:
- php: nightly
include:
- php: 7.0
env: CC=clang
- php: 7.1
env: CC=clang
- php: 7.2
env: CC=clang
- php: 7.3
env: CC=clang
- php: 7.4
env: CC=clang
addons:
apt:
packages:
- clang
before_install:
- git clone https://github.com/uber/h3.git
- cd h3
- cmake -DBUILD_SHARED_LIBS=ON .
- make -j4
- sudo make install
- sudo cp /usr/local/lib/libh3.* /usr/lib/
- sudo mkdir /usr/local/lib64/ /usr/lib64/
- sudo cp /usr/local/lib/libh3.* /usr/local/lib64/
- sudo cp /usr/local/lib/libh3.* /usr/lib64/
- sudo sh -c "echo '/usr/local/lib64/' >> /etc/ld.so.conf"
- sudo sh -c "echo '/usr/lib64/' >> /etc/ld.so.conf"
- sudo ldconfig
- cd ..
- phpize
- ./configure
install: make install
before_script:
- echo 'extension = h3.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- php tests/h3.php
- php examples/index.php
- php examples/neighbors.php