Commit 02b8228d authored by Frederick Zhang's avatar Frederick Zhang

update CI files

parent 6a7c32b8
Pipeline #360 failed with stage
in 10 minutes and 22 seconds
......@@ -5,7 +5,7 @@ before_script:
- apt-get -y update
- apt-get -y install autoconf build-essential gcc g++ valgrind
build:
php71:
stage: build
script:
- phpize
......@@ -13,7 +13,33 @@ build:
- make -j$(nproc)
- make test TESTS="-m"
artifacts:
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP71"
expire_in: 2 weeks
paths:
- modules/bencode.so
php72:
stage: build
script:
- phpize
- ./configure --enable-bencode
- make -j$(nproc)
- make test TESTS="-m"
artifacts:
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP72"
expire_in: 2 weeks
paths:
- modules/bencode.so
php73:
stage: build
script:
- phpize
- ./configure --enable-bencode
- make -j$(nproc)
- make test # TESTS="-m"
artifacts:
name: "${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}_PHP73"
expire_in: 2 weeks
paths:
- modules/bencode.so
......@@ -16,6 +16,8 @@ addons:
php:
- '7.1'
- '7.2'
- '7.3'
before_install:
- export CC=gcc-5
......@@ -26,4 +28,4 @@ script:
- phpize
- ./configure --enable-bencode
- make -j$(nproc)
- make test TESTS="-m"
- bash -c '[[ -z `php -v | grep "^PHP 7.3"` ]] && make test TESTS="-m" || make test'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment