-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
65 lines (60 loc) · 2.08 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
dist: xenial
language: php
php:
- 7.4
- 8.0
env:
matrix:
- RE2C_VERSION="1.1.1"
before_script:
- LEVELDB_VERSION=623f633d3a588f9e478b95a12dc794d25968234f
- curl -fsSL "https://github.com/pmmp/leveldb/archive/${LEVELDB_VERSION}.tar.gz" | tar -zx
- mv leveldb-$LEVELDB_VERSION leveldb-mcpe
- cd leveldb-mcpe && make -j4 sharedlibs && mv out-shared/libleveldb.* . && cd ..
- git clone https://github.com/reeze/php-leveldb.git leveldb
- cd leveldb
- git checkout 98f2fc73d41e25ce74c59dd49c43380be1cbcf09
- phpize
- ./configure --with-leveldb=../leveldb-mcpe && make && make install
- cd ..
- git clone https://github.com/pmmp/ext-chunkutils2.git chunkutils
- cd chunkutils
- git checkout 0.2.0
- phpize
- ./configure && make && make install
- cd ..
- .ci/install-re2c.sh
- git clone https://github.com/phalcon/php-zephir-parser.git zephir-parser
- cd zephir-parser
- phpize
- ./configure --enable-zephir-parser && make && make install
- cd ../
- echo "extension=zephir_parser.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- git clone https://github.com/organization/RapidPM.git rapidpm
- cd rapidpm/
- .ci/zephir.phar generate
- cd ext/
- phpize
- ./configure --enable-rapidpm && make && make install
- cd ../../
# - pecl install channel://pecl.php.net/pthreads-3.1.6
- echo | pecl install channel://pecl.php.net/yaml-2.2.1
- pecl install channel://pecl.php.net/crypto-0.3.2
- pecl install channel://pecl.php.net/ds-1.3.0
- pecl install channel://pecl.php.net/igbinary-3.2.1
- git clone https://github.com/pmmp/pthreads.git
- cd pthreads
- git checkout 681b01945bac85f7de81e4db290ae0b685e54b6e
- phpize
- ./configure
- make
- make install
- cd ..
- echo "extension=rapidpm.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=chunkutils2.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=leveldb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- ./tests/travis.sh -t4
notifications:
email: true