Created
April 17, 2017 20:52
-
-
Save vinniejames/c11197bd4f2b16528d8e4ef633d7779c to your computer and use it in GitHub Desktop.
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
dependencies: | |
pre: | |
# Update Google Chrome. | |
- google-chrome --version | |
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb stable main" >> /etc/apt/sources.list.d/google.list' | |
- sudo apt-get update | |
- sudo apt-get --only-upgrade install google-chrome-stable | |
- google-chrome --version | |
post: | |
# circle seems to expect this but doesnt install it | |
- sudo apt-get install libapache2-mod-php5 | |
# copy apache config file | |
- sudo cp ~/phpwebapp/circleApache.conf /etc/apache2/sites-available | |
# give phpwebapp to apache | |
- sudo chown -R www-data:www-data ~/phpwebapp | |
- sudo a2enmod rewrite | |
- sudo a2enmod headers | |
- sudo a2ensite circleApache | |
# DocumentRoot doesnt work, so symlinking instead | |
- sudo rm -r /var/www/html | |
- sudo ln -s /home/ubuntu/aphpwebapp /var/www/html | |
- ls /var/www/html | |
- sudo service apache2 restart | |
# allow nightwatch write access to log file | |
- sudo mkdir ~/phpwebapp/tests/log | |
- sudo touch ~/phpwebapp/tests/log/selenium-debug.log | |
- sudo chown -R ubuntu:ubuntu ~/phpwebapp/tests/log | |
# Chrome doesnt allow .dev domain without /etc/hosts entry | |
- sudo sh -c "echo 127.0.0.1 local.phpwebapp.dev >> /etc/hosts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment