Skip to content

Commit f31f040

Browse files
committed
php: prepare environment for PHP 8.2
1 parent 590da91 commit f31f040

File tree

3 files changed

+115
-930
lines changed

3 files changed

+115
-930
lines changed

php/Jenkinsfile.erb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<% # vim: ft=eruby et ts=4 sw=4 sts=4
2-
patch = 'cb6'
2+
patch = 'cb4'
33
supported_interpreters = [
4-
'8.1.0',
5-
'8.0.13',
6-
'7.4.26',
4+
'8.2.29',
5+
# '8.1.0',
6+
# '8.0.13',
7+
# '7.4.26',
78
]
89
openssl_ver = '1.1.1g-sdk2'
910
php_versions = supported_interpreters.map do |php_ver|
@@ -94,7 +95,7 @@ pipeline {
9495
<%
9596
def msvc_ver(php)
9697
case php
97-
when /8.0/, /8.1/
98+
when /8.0/, /8.1/, /8.2/
9899
'msvc2019'
99100
when /7.4/, /7.3/
100101
'msvc2017'
@@ -103,7 +104,7 @@ end
103104

104105
def msvs_ver(php)
105106
case php
106-
when /8.0/, /8.1/
107+
when /8.0/, /8.1/, /8.2/
107108
'16.0'
108109
when /7.4/, /7.3/
109110
'15.0'
@@ -112,7 +113,7 @@ end
112113

113114
def cbdep_platform(php)
114115
case php
115-
when /8.0/, /8.1/
116+
when /8.0/, /8.1/, /8.2/
116117
'windows_msvc2019'
117118
when /7.4/, /7.3/
118119
'windows_msvc2017'
@@ -121,7 +122,7 @@ end
121122

122123
def agent_label(php)
123124
case php
124-
when /8.0/, /8.1/
125+
when /8.0/, /8.1/, /8.2/
125126
'msvc-2019'
126127
when /7.4/, /7.3/
127128
'msvc-2017'
@@ -222,15 +223,15 @@ vc_vars = "%PROGRAMFILES(X86)%\\\\Microsoft Visual Studio\\\\#{msvc_ver(php_ver)
222223
}
223224
}
224225
<% if ENV['WINDOWS_ONLY'] %>
225-
<% php_ver = php_versions.map(&:first).find {|v| v =~ /7.4/} %>
226+
<% php_ver = php_versions.map(&:first).find {|v| v =~ /8.2/} %>
226227
<% ts = 'zts' %>
227228
stage('package') {
228229
stages {
229230
stage('src') {
230-
agent { label 'centos7' }
231+
agent { label 'rockylinux9' }
231232
steps {
232233
cleanWs()
233-
sh('<%= cbdep_install %> --dir /tmp/php php-<%= ts %> <%= php_ver %>-<%= patch %>')
234+
sh('<%= cbdep_install %> --dir /tmp/php php-<%= ts %>-default <%= php_ver %>-<%= patch %>')
234235
<% php_root = "/tmp/php/php-#{ts}-#{php_ver}-#{patch}" %>
235236
<% php = "#{php_root}/bin/php" %>
236237
<% pear = "#{php_root}/bin/pear" %>

php/Jenkinsfile.lnx

Lines changed: 16 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ pipeline {
1717
}
1818
stage('build and test') {
1919
parallel {
20-
stage('ln8.1') {
20+
stage('ln8.2') {
2121
agent { label 'centos7' }
2222
stages {
2323
stage('php') {
2424
steps {
2525
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
2626
cleanWs()
27-
sh('cbdep --debug install --dir /tmp/php php-nts 8.1.0-cb6')
27+
sh('cbdep --debug install --dir /tmp/php php-nts 8.2.29-cb4')
2828
}
2929
}
3030
stage('lcb') {
3131
steps {
32-
dir('8.1.0-nts-x64') {
32+
dir('8.2.29-nts-x64') {
3333
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
3434
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
3535
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
@@ -39,11 +39,11 @@ pipeline {
3939
}
4040
stage('build') {
4141
steps {
42-
dir('8.1.0-nts-x64') {
42+
dir('8.2.29-nts-x64') {
4343
unstash 'php-couchbase'
4444
dir('php-couchbase') {
45-
sh('/tmp/php/php-nts-8.1.0-cb6/bin/phpize')
46-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-nts-8.1.0-cb6/bin/php-config")
45+
sh('/tmp/php/php-nts-8.2.29-cb4/bin/phpize')
46+
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-nts-8.2.29-cb4/bin/php-config")
4747
sh('make clean all')
4848
}
4949
}
@@ -54,27 +54,27 @@ pipeline {
5454
timeout(time: 15, unit: 'MINUTES')
5555
}
5656
steps {
57-
dir('8.1.0-nts-x64/php-couchbase') {
57+
dir('8.2.29-nts-x64/php-couchbase') {
5858
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
59-
sh("CB_MOCK=1 /tmp/php/php-nts-8.1.0-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-nts-8.1.0-cb6/phpunit.phar --debug tests/")
59+
sh("CB_MOCK=1 /tmp/php/php-nts-8.2.29-cb4/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-nts-8.2.29-cb4/phpunit.phar --debug tests/")
6060
}
6161
}
6262
}
6363
}
6464
}
65-
stage('lz8.1') {
65+
stage('lz8.2') {
6666
agent { label 'centos7' }
6767
stages {
6868
stage('php') {
6969
steps {
7070
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
7171
cleanWs()
72-
sh('cbdep --debug install --dir /tmp/php php-zts 8.1.0-cb6')
72+
sh('cbdep --debug install --dir /tmp/php php-zts 8.2.29-cb4')
7373
}
7474
}
7575
stage('lcb') {
7676
steps {
77-
dir('8.1.0-zts-x64') {
77+
dir('8.2.29-zts-x64') {
7878
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
7979
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
8080
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
@@ -84,11 +84,11 @@ pipeline {
8484
}
8585
stage('build') {
8686
steps {
87-
dir('8.1.0-zts-x64') {
87+
dir('8.2.29-zts-x64') {
8888
unstash 'php-couchbase'
8989
dir('php-couchbase') {
90-
sh('/tmp/php/php-zts-8.1.0-cb6/bin/phpize')
91-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-zts-8.1.0-cb6/bin/php-config")
90+
sh('/tmp/php/php-zts-8.2.29-cb4/bin/phpize')
91+
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-zts-8.2.29-cb4/bin/php-config")
9292
sh('make clean all')
9393
}
9494
}
@@ -99,189 +99,9 @@ pipeline {
9999
timeout(time: 15, unit: 'MINUTES')
100100
}
101101
steps {
102-
dir('8.1.0-zts-x64/php-couchbase') {
102+
dir('8.2.29-zts-x64/php-couchbase') {
103103
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
104-
sh("CB_MOCK=1 /tmp/php/php-zts-8.1.0-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-zts-8.1.0-cb6/phpunit.phar --debug tests/")
105-
}
106-
}
107-
}
108-
}
109-
}
110-
stage('ln8.0') {
111-
agent { label 'centos7' }
112-
stages {
113-
stage('php') {
114-
steps {
115-
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
116-
cleanWs()
117-
sh('cbdep --debug install --dir /tmp/php php-nts 8.0.13-cb6')
118-
}
119-
}
120-
stage('lcb') {
121-
steps {
122-
dir('8.0.13-nts-x64') {
123-
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
124-
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
125-
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
126-
sh('LD_LIBRARY_PATH=\$(realpath install/libcouchbase-linux-amd64/lib) install/libcouchbase-linux-amd64/bin/cbc version')
127-
}
128-
}
129-
}
130-
stage('build') {
131-
steps {
132-
dir('8.0.13-nts-x64') {
133-
unstash 'php-couchbase'
134-
dir('php-couchbase') {
135-
sh('/tmp/php/php-nts-8.0.13-cb6/bin/phpize')
136-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-nts-8.0.13-cb6/bin/php-config")
137-
sh('make clean all')
138-
}
139-
}
140-
}
141-
}
142-
stage('test') {
143-
options {
144-
timeout(time: 15, unit: 'MINUTES')
145-
}
146-
steps {
147-
dir('8.0.13-nts-x64/php-couchbase') {
148-
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
149-
sh("CB_MOCK=1 /tmp/php/php-nts-8.0.13-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-nts-8.0.13-cb6/phpunit.phar --debug tests/")
150-
}
151-
}
152-
}
153-
}
154-
}
155-
stage('lz8.0') {
156-
agent { label 'centos7' }
157-
stages {
158-
stage('php') {
159-
steps {
160-
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
161-
cleanWs()
162-
sh('cbdep --debug install --dir /tmp/php php-zts 8.0.13-cb6')
163-
}
164-
}
165-
stage('lcb') {
166-
steps {
167-
dir('8.0.13-zts-x64') {
168-
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
169-
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
170-
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
171-
sh('LD_LIBRARY_PATH=\$(realpath install/libcouchbase-linux-amd64/lib) install/libcouchbase-linux-amd64/bin/cbc version')
172-
}
173-
}
174-
}
175-
stage('build') {
176-
steps {
177-
dir('8.0.13-zts-x64') {
178-
unstash 'php-couchbase'
179-
dir('php-couchbase') {
180-
sh('/tmp/php/php-zts-8.0.13-cb6/bin/phpize')
181-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-zts-8.0.13-cb6/bin/php-config")
182-
sh('make clean all')
183-
}
184-
}
185-
}
186-
}
187-
stage('test') {
188-
options {
189-
timeout(time: 15, unit: 'MINUTES')
190-
}
191-
steps {
192-
dir('8.0.13-zts-x64/php-couchbase') {
193-
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
194-
sh("CB_MOCK=1 /tmp/php/php-zts-8.0.13-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-zts-8.0.13-cb6/phpunit.phar --debug tests/")
195-
}
196-
}
197-
}
198-
}
199-
}
200-
stage('ln7.4') {
201-
agent { label 'centos7' }
202-
stages {
203-
stage('php') {
204-
steps {
205-
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
206-
cleanWs()
207-
sh('cbdep --debug install --dir /tmp/php php-nts 7.4.26-cb6')
208-
}
209-
}
210-
stage('lcb') {
211-
steps {
212-
dir('7.4.26-nts-x64') {
213-
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
214-
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
215-
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
216-
sh('LD_LIBRARY_PATH=\$(realpath install/libcouchbase-linux-amd64/lib) install/libcouchbase-linux-amd64/bin/cbc version')
217-
}
218-
}
219-
}
220-
stage('build') {
221-
steps {
222-
dir('7.4.26-nts-x64') {
223-
unstash 'php-couchbase'
224-
dir('php-couchbase') {
225-
sh('/tmp/php/php-nts-7.4.26-cb6/bin/phpize')
226-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-nts-7.4.26-cb6/bin/php-config")
227-
sh('make clean all')
228-
}
229-
}
230-
}
231-
}
232-
stage('test') {
233-
options {
234-
timeout(time: 15, unit: 'MINUTES')
235-
}
236-
steps {
237-
dir('7.4.26-nts-x64/php-couchbase') {
238-
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
239-
sh("CB_MOCK=1 /tmp/php/php-nts-7.4.26-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-nts-7.4.26-cb6/phpunit.phar --debug tests/")
240-
}
241-
}
242-
}
243-
}
244-
}
245-
stage('lz7.4') {
246-
agent { label 'centos7' }
247-
stages {
248-
stage('php') {
249-
steps {
250-
sh(script: 'sudo yum install -y openssl-libs openssl11-libs', returnStatus: true)
251-
cleanWs()
252-
sh('cbdep --debug install --dir /tmp/php php-zts 7.4.26-cb6')
253-
}
254-
}
255-
stage('lcb') {
256-
steps {
257-
dir('7.4.26-zts-x64') {
258-
sh('cbdep --debug install --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase 3.3.1-cb1')
259-
sh('mv install/libcouchbase-3.3.1-cb1/libcouchbase-centos7-x86_64-3.3.1-cb1 install/libcouchbase-linux-amd64')
260-
sh('rm -rf install/libcouchbase-linux-amd64/lib; ln -sf \$(realpath install/libcouchbase-linux-amd64/lib64) install/libcouchbase-linux-amd64/lib')
261-
sh('LD_LIBRARY_PATH=\$(realpath install/libcouchbase-linux-amd64/lib) install/libcouchbase-linux-amd64/bin/cbc version')
262-
}
263-
}
264-
}
265-
stage('build') {
266-
steps {
267-
dir('7.4.26-zts-x64') {
268-
unstash 'php-couchbase'
269-
dir('php-couchbase') {
270-
sh('/tmp/php/php-zts-7.4.26-cb6/bin/phpize')
271-
sh("./configure --with-couchbase=\$(realpath ../install/libcouchbase-linux-amd64) --with-php-config=/tmp/php/php-zts-7.4.26-cb6/bin/php-config")
272-
sh('make clean all')
273-
}
274-
}
275-
}
276-
}
277-
stage('test') {
278-
options {
279-
timeout(time: 15, unit: 'MINUTES')
280-
}
281-
steps {
282-
dir('7.4.26-zts-x64/php-couchbase') {
283-
sh('sudo yum install --disablerepo=bintray* -y libnsl oniguruma')
284-
sh("CB_MOCK=1 /tmp/php/php-zts-7.4.26-cb6/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-zts-7.4.26-cb6/phpunit.phar --debug tests/")
104+
sh("CB_MOCK=1 /tmp/php/php-zts-8.2.29-cb4/bin/php -d extension=\$(pwd)/modules/couchbase.so -d couchbase.log_level=TRACE /tmp/php/php-zts-8.2.29-cb4/phpunit.phar --debug tests/")
285105
}
286106
}
287107
}

0 commit comments

Comments
 (0)