Skip to content

Commit 02b8228

Browse files
committed
update CI files
1 parent 6a7c32b commit 02b8228

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

.gitlab-ci.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ addons:
1616

1717
php:
1818
- '7.1'
19+
- '7.2'
20+
- '7.3'
1921

2022
before_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'

0 commit comments

Comments
 (0)