File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,41 @@ before_script:
55 - apt-get -y update
66 - apt-get -y install autoconf build-essential gcc g++ valgrind
77
8- build :
8+ php71 :
99 stage : build
1010 script :
1111 - phpize
1212 - ./configure --enable-bencode
1313 - make -j$(nproc)
1414 - make test TESTS="-m"
1515 artifacts :
16- name : " ${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
16+ name : " ${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP71"
17+ expire_in : 2 weeks
18+ paths :
19+ - modules/bencode.so
20+
21+ php72 :
22+ stage : build
23+ script :
24+ - phpize
25+ - ./configure --enable-bencode
26+ - make -j$(nproc)
27+ - make test TESTS="-m"
28+ artifacts :
29+ name : " ${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP72"
30+ expire_in : 2 weeks
31+ paths :
32+ - modules/bencode.so
33+
34+ php73 :
35+ stage : build
36+ script :
37+ - phpize
38+ - ./configure --enable-bencode
39+ - make -j$(nproc)
40+ - make test # TESTS="-m"
41+ artifacts :
42+ name : " ${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP73"
1743 expire_in : 2 weeks
1844 paths :
1945 - modules/bencode.so
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ addons:
1616
1717php :
1818 - ' 7.1'
19+ - ' 7.2'
20+ - ' 7.3'
1921
2022before_install :
2123 - export CC=gcc-5
@@ -26,4 +28,4 @@ script:
2628 - phpize
2729 - ./configure --enable-bencode
2830 - make -j$(nproc)
29- - make test TESTS="-m"
31+ - bash -c '[[ -z `php -v | grep "^PHP 7.3"` ]] && make test TESTS="-m" || make test'
You can’t perform that action at this time.
0 commit comments