Skip to content

Instantly share code, notes, and snippets.

@ginatrapani
Forked from roderik/.travis.yml
Created April 14, 2013 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ginatrapani/5384272 to your computer and use it in GitHub Desktop.
Save ginatrapani/5384272 to your computer and use it in GitHub Desktop.
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://raw.github.com/gist/16d751c979fdeb5a14e3/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
- echo "$(curl -fsSL https://raw.github.com/gist/2eb301570ed4a1f4c33d/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