From 6a686d3b03d2f4aefefa8f370abea57741c1d142 Mon Sep 17 00:00:00 2001 From: bwdutton Date: Sat, 1 Feb 2020 15:14:07 -0800 Subject: [PATCH] switch travis to php 7.0 don't fail on deprecated function warnings remove debug --- .travis.yml | 5 ++++- modules/gallery/tests/Xss_Security_Test.php | 1 - modules/gallery_unit_test/controllers/gallery_unit_test.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae59d20e..3dc335ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: php php: - - 5.6 + - 7.0 branches: only: @@ -8,6 +8,9 @@ branches: - 3.1.x - master +notifications: + email: false + services: - mysql diff --git a/modules/gallery/tests/Xss_Security_Test.php b/modules/gallery/tests/Xss_Security_Test.php index deeea750..6f78bb6f 100644 --- a/modules/gallery/tests/Xss_Security_Test.php +++ b/modules/gallery/tests/Xss_Security_Test.php @@ -29,7 +29,6 @@ class Xss_Security_Test extends Gallery_Unit_Test_Case { } } -print "checking view $view\n"; $frame = null; $script_block = 0; $in_script_block = false; diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 6b2bf479..23435801 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -25,7 +25,7 @@ class Gallery_Unit_Test_Controller extends Controller { // Force strict behavior to flush out bugs early ini_set("display_errors", true); - error_reporting(-1); + error_reporting(E_ALL & ~E_DEPRECATED); // Jump through some hoops to satisfy the way that we check for the site_domain in // config.php. We structure this such that the code in config will leave us with a