Skip to content

Commit 972df98

Browse files
updated travisci config
1 parent 98358ab commit 972df98

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ before_script:
2424
- mysql -u root -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('test');"
2525
# install apache2
2626
- chmod +x .travis/*.sh
27-
# - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]]; then .travis/init-php7.3.sh; else .travis/init-php.sh; fi
28-
- .travis/init-php.sh
27+
- .travis/init-php7.sh
2928

3029

3130

.travis/init-php7.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# install apache2
3+
sudo apt-get update
4+
sudo apt-get install apache2 libapache2-mod-fastcgi
5+
# enable php-fpm
6+
sudo cp .travis/www.conf ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/
7+
sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
8+
sudo a2enmod rewrite actions alias proxy_fcgi
9+
sudo sed -i -e "s,www-data,travis,g" /etc/apache2/envvars
10+
sudo chown -R travis:travis /var/lib/apache2/fastcgi
11+
~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
12+
# configure apache virtual hosts
13+
sudo cp -f .travis/travis-ci-apache7.3 /etc/apache2/sites-available/000-default.conf
14+
sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
15+
sudo service apache2 restart

0 commit comments

Comments
 (0)