]> granicus.if.org Git - php/commitdiff
let's try running our testsuite without sudo
authorFerenc Kovacs <tyrael@php.net>
Sun, 23 Aug 2015 20:47:51 +0000 (22:47 +0200)
committerFerenc Kovacs <tyrael@php.net>
Sun, 23 Aug 2015 20:47:51 +0000 (22:47 +0200)
.travis.yml
travis/compile.sh
travis/ext/curl/setup.sh
travis/install.sh [deleted file]

index 090f6cd2bc4404e2bafdc816f6bbd9234fe331e8..e6eec4c45fa37c101763286300a9df57c385cd74 100644 (file)
@@ -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
index 039ed65cb92016e838b194bce63602085f671d3d..682d5d8598b06f5a7d41688e1dd616a65869f625 100755 (executable)
@@ -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
index 74dad16eb35bae7a8ee4de237885d4fbbfd2c28a..02e8ce5bb8889edd544bb841774fe3a47463eb6f 100755 (executable)
@@ -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 (executable)
index 5c6a3c1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-sudo apt-get install re2c libgmp-dev libicu-dev libmcrypt-dev libtidy-dev