Skip to content

Commit 89c8e66

Browse files
committed
update ci files to enable valgrind in php 7.3
1 parent 8692537 commit 89c8e66

2 files changed

Lines changed: 13 additions & 26 deletions

File tree

.gitlab-ci.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,33 @@ image: php:latest
22

33
before_script:
44
- export NO_INTERACTION=1
5+
- sed -i 's/deb\.debian/ftp.jp.debian/' /etc/apt/sources.list
56
- apt-get -y update
7+
- apt-get -y upgrade
68
- apt-get -y install autoconf build-essential gcc g++ valgrind
79

8-
php71:
9-
image: php:7.1
10+
.php:
1011
stage: build
1112
script:
1213
- phpize
1314
- ./configure --enable-bencode
1415
- make -j$(nproc)
16+
- chmod 600 ./.valgrindrc
1517
- make test TESTS="-m"
1618
artifacts:
17-
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
19+
name: '${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}'
1820
expire_in: 2 weeks
1921
paths:
2022
- modules/bencode.so
2123

24+
php71:
25+
extends: .php
26+
image: php:7.1
27+
2228
php72:
29+
extends: .php
2330
image: php:7.2
24-
stage: build
25-
script:
26-
- phpize
27-
- ./configure --enable-bencode
28-
- make -j$(nproc)
29-
- make test TESTS="-m"
30-
artifacts:
31-
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
32-
expire_in: 2 weeks
33-
paths:
34-
- modules/bencode.so
3531

3632
php73:
33+
extends: .php
3734
image: php:7.3
38-
stage: build
39-
script:
40-
- phpize
41-
- ./configure --enable-bencode
42-
- make -j$(nproc)
43-
- make test # TESTS="-m"
44-
artifacts:
45-
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
46-
expire_in: 2 weeks
47-
paths:
48-
- modules/bencode.so

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ script:
2828
- phpize
2929
- ./configure --enable-bencode
3030
- make -j$(nproc)
31-
- bash -c '[[ -z `php -v | grep "^PHP 7.3"` ]] && make test TESTS="-m" || make test'
31+
- chmod 600 ./.valgrindrc
32+
- make test TESTS="-m"

0 commit comments

Comments
 (0)