remove sudo
This commit is contained in:
parent
f1c7b7745a
commit
6d25f96a5c
15
.travis.yml
15
.travis.yml
|
@ -40,21 +40,6 @@ matrix:
|
|||
- php: hhvm
|
||||
|
||||
before_script:
|
||||
# Forcing localhost in hosts file
|
||||
- sudo sed -i '1s/^/127.0.0.1 localhost\n/' /etc/hosts
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y --force-yes apache2 libapache2-mod-fastcgi > /dev/null
|
||||
- sudo mkdir $(pwd)/.run
|
||||
- chmod a+x tests/travis-php-fpm.sh
|
||||
- sudo ./tests/travis-php-fpm.sh $USER $(phpenv version-name)
|
||||
- sudo a2enmod rewrite actions fastcgi alias
|
||||
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
|
||||
- sudo cp -f tests/travis-ci-apache.conf /etc/apache2/sites-available/default
|
||||
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
|
||||
- sudo sed -e "s?%PHPVERSION%?${TRAVIS_PHP_VERSION:0:1}?g" --in-place /etc/apache2/sites-available/default
|
||||
- git submodule update --init --recursive
|
||||
- sudo service apache2 restart
|
||||
# Xvfb
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
|
|
Loading…
Reference in New Issue