Last active
January 30, 2020 06:07
-
-
Save roderik/3123962 to your computer and use it in GitHub Desktop.
Installing Apache with PHP in Travis-CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 5.3 | |
- 5.4 | |
before_script: | |
- sudo apt-get install apache2 | |
- sudo a2enmod actions | |
- sudo a2enmod rewrite | |
- echo "export PATH=/home/vagrant/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null | |
- echo "$(curl -fsSL https://gist.github.com/roderik/16d751c979fdeb5a14e3/raw/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null | |
- echo "$(curl -fsSL https://gist.github.com/roderik/2eb301570ed4a1f4c33d/raw/gistfile1.txt)" | sed -e "s,PATH,`pwd`/web,g" | sudo tee /etc/apache2/sites-available/default > /dev/null | |
- sudo service apache2 restart | |
- mysql -u root -e "CREATE USER 'myproject'@'localhost' IDENTIFIED BY 'mypass'" | |
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'myproject'@'localhost' WITH GRANT OPTION;" | |
- bin/vendors install | |
- app/console doctrine:database:create | |
- app/console doctrine:schema:update --force | |
- app/console doctrine:fixtures:load | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2019: Apache + PHP.