Skip to content

Commit 340ca20

Browse files
committed
Move ARM64 build to Cirrus
Travis is very unreliable lately
1 parent b3e28e2 commit 340ca20

File tree

5 files changed

+213
-9
lines changed

5 files changed

+213
-9
lines changed

.cirrus.yml

Lines changed: 207 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
3-
ARCH: amd64
43

5-
freebsd_instance:
6-
image_family: freebsd-13-0
7-
8-
task:
4+
freebsd_task:
95
name: FREEBSD_DEBUG_NTS
6+
freebsd_instance:
7+
image_family: freebsd-13-0
8+
env:
9+
ARCH: amd64
1010
install_script:
1111
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
1212
#- pkg upgrade -y
@@ -26,3 +26,205 @@ task:
2626
- export SKIP_IO_CAPTURE_TESTS=1
2727
- export CI_NO_IPV6=1
2828
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so
29+
30+
arm_task:
31+
name: ARM_DEBUG_NTS
32+
arm_container:
33+
image: gcc:10
34+
additional_containers:
35+
- name: mysql
36+
image: mysql:latest
37+
port: 3306
38+
env:
39+
MYSQL_ALLOW_EMPTY_PASSWORD: true
40+
MYSQL_ROOT_PASSWORD: ""
41+
MYSQL_DATABASE: "test"
42+
- name: postgres
43+
image: postgres:latest
44+
port: 5432
45+
env:
46+
POSTGRES_PASSWORD: "postgres"
47+
POSTGRES_DB: "test"
48+
- name: mssql
49+
image: mcr.microsoft.com/mssql/server:2019-latest
50+
port: 1433
51+
env:
52+
SA_PASSWORD: mssql
53+
ACCEPT_EULA: 'Y'
54+
install_script:
55+
- export DEBIAN_FRONTEND=noninteractive
56+
- apt-get update -y
57+
- >-
58+
apt-get install -y
59+
bison
60+
re2c
61+
locales
62+
locales-all
63+
ldap-utils
64+
openssl
65+
slapd
66+
libgmp-dev
67+
libicu-dev
68+
libtidy-dev
69+
libenchant-dev
70+
libaspell-dev
71+
libpspell-dev
72+
libsasl2-dev
73+
libxpm-dev
74+
libzip-dev
75+
libsqlite3-dev
76+
libwebp-dev
77+
libonig-dev
78+
libkrb5-dev
79+
libgssapi-krb5-2
80+
libcurl4-openssl-dev
81+
libxml2-dev
82+
libxslt1-dev
83+
libpq-dev
84+
libreadline-dev
85+
libldap2-dev
86+
libsodium-dev
87+
libargon2-0-dev
88+
libmm-dev
89+
libsnmp-dev
90+
snmpd
91+
`#snmp-mibs-downloader`
92+
freetds-dev
93+
`#unixodbc-dev`
94+
libc-client-dev
95+
dovecot-core
96+
dovecot-pop3d
97+
dovecot-imapd
98+
sendmail
99+
firebird-dev
100+
liblmdb-dev
101+
libtokyocabinet-dev
102+
libdb-dev
103+
libqdbm-dev
104+
libjpeg-dev
105+
libpng-dev
106+
libfreetype6-dev
107+
build_script:
108+
- ./buildconf -f
109+
- >-
110+
./configure
111+
--enable-debug
112+
--enable-zts
113+
--enable-option-checking=fatal
114+
--prefix=/usr
115+
--enable-phpdbg
116+
--enable-fpm
117+
--enable-opcache
118+
--with-pdo-mysql=mysqlnd
119+
--with-mysqli=mysqlnd
120+
--with-pgsql
121+
--with-pdo-pgsql
122+
--with-pdo-sqlite
123+
--enable-intl
124+
--without-pear
125+
--enable-gd
126+
--with-jpeg
127+
--with-webp
128+
--with-freetype
129+
--with-xpm
130+
--enable-exif
131+
--with-zip
132+
--with-zlib
133+
--with-zlib-dir=/usr
134+
--enable-soap
135+
--enable-xmlreader
136+
--with-xsl
137+
--with-tidy
138+
--enable-sysvsem
139+
--enable-sysvshm
140+
--enable-shmop
141+
--enable-pcntl
142+
--with-readline
143+
--enable-mbstring
144+
--with-curl
145+
--with-gettext
146+
--enable-sockets
147+
--with-bz2
148+
--with-openssl
149+
--with-gmp
150+
--enable-bcmath
151+
--enable-calendar
152+
--enable-ftp
153+
--with-pspell=/usr
154+
--with-enchant=/usr
155+
--with-kerberos
156+
--enable-sysvmsg
157+
--with-ffi
158+
--enable-zend-test
159+
--enable-dl-test=shared
160+
--with-ldap
161+
--with-ldap-sasl
162+
--with-password-argon2
163+
--with-mhash
164+
--with-sodium
165+
--enable-dba
166+
--with-cdb
167+
--enable-flatfile
168+
--enable-inifile
169+
--with-tcadb
170+
--with-lmdb
171+
--with-qdbm
172+
--with-snmp
173+
`#--with-unixODBC`
174+
--with-imap
175+
--with-kerberos
176+
--with-imap-ssl
177+
`#--with-pdo-odbc=unixODBC,/usr`
178+
`#--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient`
179+
`#--with-oci8=shared,instantclient,/opt/oracle/instantclient`
180+
--with-config-file-path=/etc
181+
--with-config-file-scan-dir=/etc/php.d
182+
--with-pdo-firebird
183+
--with-pdo-dblib
184+
--disable-phpdbg
185+
`#--enable-werror`
186+
- make -j2 > /dev/null
187+
- make install
188+
- mkdir -p /etc/php.d
189+
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
190+
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
191+
# Specify opcache.preload_user as we're running as root.
192+
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
193+
tests_script:
194+
- export SKIP_IO_CAPTURE_TESTS=1
195+
- export CI_NO_IPV6=1
196+
- export MYSQL_TEST_HOST=127.0.0.1
197+
- export MYSQL_TEST_USER=root
198+
- export MYSQL_TEST_PASSWD=
199+
- export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
200+
- export PDO_MYSQL_TEST_USER=root
201+
- export PDO_MYSQL_TEST_PASS=
202+
- export PDO_PGSQL_TEST_DSN="pgsql:host=127.0.0.1 port=5432 dbname=test user=postgres password=postgres"
203+
- export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0"
204+
- export PDO_DBLIB_TEST_USER="sa"
205+
- export PDO_DBLIB_TEST_PASS="mssql"
206+
- >-
207+
sapi/cli/php run-tests.php
208+
-d zend_extension=opcache.so
209+
-d opcache.enable_cli=1
210+
-d opcache.jit_buffer_size=16M
211+
-d opcache.jit=function
212+
-P -q -x -j2
213+
-g FAIL,BORK,LEAK,XLEAK,SKIP
214+
--offline
215+
--show-diff
216+
--show-slow 1000
217+
--set-timeout 120
218+
- >-
219+
sapi/cli/php run-tests.php
220+
-d zend_extension=opcache.so
221+
-d opcache.enable_cli=1
222+
-d opcache.jit_buffer_size=16M
223+
-d opcache.jit=tracing
224+
-P -q -x -j2
225+
-g FAIL,BORK,LEAK,XLEAK,SKIP
226+
--offline
227+
--show-diff
228+
--show-slow 1000
229+
--set-timeout 120
230+
--repeat 2

.github/workflows/push.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525
CXX: ccache g++
2626
jobs:
2727
LINUX_X64:
28+
if: false
2829
strategy:
2930
fail-fast: false
3031
matrix:
@@ -76,6 +77,7 @@ jobs:
7677
- name: Verify generated files are up to date
7778
uses: ./.github/actions/verify-generated-files
7879
LINUX_X32:
80+
if: false
7981
name: LINUX_X32_DEBUG_ZTS
8082
runs-on: ubuntu-latest
8183
container:
@@ -122,6 +124,7 @@ jobs:
122124
-d opcache.enable_cli=1
123125
-d opcache.jit_buffer_size=16M
124126
MACOS_DEBUG_NTS:
127+
if: false
125128
runs-on: macos-11
126129
steps:
127130
- name: git checkout
@@ -156,6 +159,7 @@ jobs:
156159
- name: Verify generated files are up to date
157160
uses: ./.github/actions/verify-generated-files
158161
WINDOWS:
162+
if: false
159163
strategy:
160164
fail-fast: false
161165
matrix:

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ env:
6868

6969
jobs:
7070
include:
71-
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 ARM64=1
72-
arch: arm64
7371
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
7472
arch: s390x
7573

@@ -88,8 +86,6 @@ before_script:
8886
# Run PHPs run-tests.php
8987
script:
9088
- ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing
91-
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=function; fi
92-
- if [[ "$ARM64" == 1 ]]; then ./travis/test.sh -d opcache.jit_buffer_size=16M -d opcache.jit=tracing --repeat 2; fi
9389
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9490

9591
after_success:

ext/standard/tests/file/bug52820.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ curl
55
zend_test
66
--SKIPIF--
77
<?php
8+
if (getenv('CIRRUS_CI')) die('xfail Broken on Cirrus+ARM');
89
/* unfortunately no standard function does a cast to FILE*, so we need
910
* curl to test this */
1011
$handle=curl_init('file:///i_dont_exist/');

ext/standard/tests/file/disk_free_space_basic.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Test disk_free_space and its alias diskfreespace() functions : basic functionali
33
--SKIPIF--
44
<?php
55
if (getenv("TRAVIS") === "true") die("skip inaccurate on TravisCI");
6+
if (getenv('CIRRUS_CI')) die('skip Inaccurate on Cirrus');
67
?>
78
--INI--
89
memory_limit=32M

0 commit comments

Comments
 (0)