From: Ferenc Kovacs Date: Sun, 23 Aug 2015 20:47:51 +0000 (+0200) Subject: let's try running our testsuite without sudo X-Git-Tag: php-5.5.31~9^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85d34c32642dbe75eaf27d0098e77005b45cbcba;p=php let's try running our testsuite without sudo --- diff --git a/.travis.yml b/.travis.yml index 090f6cd2bc..e6eec4c45f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,15 @@ language: c - +sudo: false +addons: + apt: + packages: + - locales + - language-pack-de + - re2c + - libgmp-dev + - libicu-dev + - libmcrypt-dev + - libtidy-dev notifications: email: on_failure: change @@ -27,11 +37,6 @@ env: - ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0 - ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1 -before_install: - - sudo cp ./travis/de /var/lib/locales/supported.d/de - - sudo dpkg-reconfigure locales - - ./travis/install.sh - before_script: # Compile PHP - ./travis/compile.sh diff --git a/travis/compile.sh b/travis/compile.sh index 039ed65cb9..682d5d8598 100755 --- a/travis/compile.sh +++ b/travis/compile.sh @@ -10,7 +10,9 @@ else DEBUG=""; fi ./buildconf --force -./configure --quiet \ +./configure \ +--prefix=$HOME"/php-install" \ +--quiet \ $DEBUG \ $TS \ --enable-fpm \ @@ -50,4 +52,4 @@ $TS \ --with-gmp \ --enable-bcmath make -j2 --quiet -sudo make install +make install diff --git a/travis/ext/curl/setup.sh b/travis/ext/curl/setup.sh index 74dad16eb3..02e8ce5bb8 100755 --- a/travis/ext/curl/setup.sh +++ b/travis/ext/curl/setup.sh @@ -1,5 +1,5 @@ #!/bin/bash -export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost" +export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost:8080" cd ./ext/curl/tests/responder -sudo php -S localhost:80 & -cd - \ No newline at end of file +php -S localhost:8080 & +cd - diff --git a/travis/install.sh b/travis/install.sh deleted file mode 100755 index 5c6a3c1913..0000000000 --- a/travis/install.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -sudo apt-get install re2c libgmp-dev libicu-dev libmcrypt-dev libtidy-dev