]> granicus.if.org Git - php/commitdiff
Simplify travis setup scripts
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Oct 2019 09:14:56 +0000 (11:14 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 25 Oct 2019 09:15:27 +0000 (11:15 +0200)
Reduce duplication.

.travis.yml
travis/ext/curl/setup.sh [deleted file]
travis/ext/mysqli/setup.sh [deleted file]
travis/ext/pdo_mysql/setup.sh [deleted file]
travis/ext/pdo_pgsql/setup.sh [deleted file]
travis/setup-mysql.sh [moved from travis/ext/mysql/setup.sh with 100% similarity]
travis/setup-pgsql.sh [moved from travis/ext/pgsql/setup.sh with 100% similarity]

index d78b14e93dca4b803497d243b323978cf6bf594f..cbc75370fbba267901bc937efc13801b81a166f5 100644 (file)
@@ -51,6 +51,7 @@ env:
       - PDO_MYSQL_TEST_USER=travis
       - PDO_MYSQL_TEST_PASS=
       - PDO_MYSQL_TEST_HOST=127.0.0.1
+      - PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
       - REPORT_EXIT_STATUS=1
     matrix:
       - ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
@@ -65,11 +66,8 @@ before_script:
     # Compile PHP
     - travis_wait ./travis/compile.sh
     # Setup Extensions
-    - . ./travis/ext/mysql/setup.sh
-    - . ./travis/ext/mysqli/setup.sh
-    - . ./travis/ext/pdo_mysql/setup.sh
-    - . ./travis/ext/pgsql/setup.sh
-    - . ./travis/ext/pdo_pgsql/setup.sh
+    - ./travis/setup-mysql.sh
+    - ./travis/setup-pgsql.sh
 
 # Run PHPs run-tests.php
 script:
diff --git a/travis/ext/curl/setup.sh b/travis/ext/curl/setup.sh
deleted file mode 100755 (executable)
index 02e8ce5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost:8080"
-cd ./ext/curl/tests/responder
-php -S localhost:8080 &
-cd -
diff --git a/travis/ext/mysqli/setup.sh b/travis/ext/mysqli/setup.sh
deleted file mode 100755 (executable)
index a3ba75c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-mysql -e "CREATE DATABASE IF NOT EXISTS test"
diff --git a/travis/ext/pdo_mysql/setup.sh b/travis/ext/pdo_mysql/setup.sh
deleted file mode 100755 (executable)
index a3ba75c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-mysql -e "CREATE DATABASE IF NOT EXISTS test"
diff --git a/travis/ext/pdo_pgsql/setup.sh b/travis/ext/pdo_pgsql/setup.sh
deleted file mode 100755 (executable)
index 5f3cf67..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-export PDO_PGSQL_TEST_DSN='pgsql:host=localhost port=5432 dbname=test user=postgres password='