From bd379df48c1568b19d267f642154f386bd864cba Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 23 Oct 2019 12:58:21 +0200 Subject: Add ARM64 CI to Travis We need to install a number of additional packages that are installed by default on the AMD64 workers. We also have to manually set up the MySQL user. For now we don't set up Postgres -- if anyone wants to figure that out, it would be great ;) Log redirections in compile.sh are removed, because /dev/stdout is not accessible. We don't see to use this anyway. --- travis/compile.sh | 7 +++---- travis/setup-mysql.sh | 4 ++++ travis/setup-pgsql.sh | 4 +++- 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'travis') diff --git a/travis/compile.sh b/travis/compile.sh index e373d9b90c..d14309a0dd 100755 --- a/travis/compile.sh +++ b/travis/compile.sh @@ -77,8 +77,7 @@ $TS \ --with-ffi \ --enable-zend-test=shared \ --enable-werror \ ---with-pear \ -> "$CONFIG_LOG_FILE" +--with-pear -make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE" -make install >> "$MAKE_LOG_FILE" +make "-j${MAKE_JOBS}" $MAKE_QUIET +make install diff --git a/travis/setup-mysql.sh b/travis/setup-mysql.sh index a3ba75cb2d..4866f24442 100755 --- a/travis/setup-mysql.sh +++ b/travis/setup-mysql.sh @@ -1,2 +1,6 @@ #!/bin/bash +if [ -n "$ARM64" ]; then + sudo mysql -e 'CREATE USER "travis"@"localhost" IDENTIFIED BY ""' + sudo mysql -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"localhost"' +fi mysql -e "CREATE DATABASE IF NOT EXISTS test" diff --git a/travis/setup-pgsql.sh b/travis/setup-pgsql.sh index 108f47db25..9172356265 100755 --- a/travis/setup-pgsql.sh +++ b/travis/setup-pgsql.sh @@ -1,4 +1,6 @@ #!/bin/bash echo ' ' >> "./ext/pgsql/tests/config.inc" -psql -c 'create database test;' -U postgres +if [ -z "$ARM64" ]; then + psql -c 'create database test;' -U postgres +fi -- cgit v1.2.1