Permalink
Browse files

changed to local files

  • Loading branch information...
1 parent b3ebf65 commit 4ef7396eed3d8f78f19d00c53cf7b047a56e476a @BjoernSchotte committed Sep 15, 2012
Showing with 56 additions and 2 deletions.
  1. +2 −2 .travis.yml
  2. +22 −0 .travis/travis-ci-phpenv-sugarcrmce.txt
  3. +32 −0 .travis/travis-ci-vhost-sugarcrmce.txt
View
4 .travis.yml
@@ -9,8 +9,8 @@ before_script:
- 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/3728514/e9297a5c1ff408be03713a8bc4faf1d93d82af39/travis-ci-phpenv-sugarcrmce.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
- - echo "$(curl -fsSL https://raw.github.com/gist/3728514/8066fda124b6c86f69ad32a010b8c22bbaf868e8/travis-ci-vhost-sugarcrmce.txt)" | sed -e "s,PATH,`pwd`,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
+ - cat .travis/travis-ci-phpenv-sugarcrmce.txt | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
+ - cat .travis/travis-ci-vhost-sugarcrmce.txt | sed -e "s,PATH,`pwd`,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
- sudo service apache2 restart
- mysql -u root -e "CREATE USER 'sugarcrm'@'localhost' IDENTIFIED BY 'sugarcrm'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'sugarcrm'@'localhost' WITH GRANT OPTION;"
View
22 .travis/travis-ci-phpenv-sugarcrmce.txt
@@ -0,0 +1,22 @@
+# PHPENV Setup
+<IfModule alias_module>
+ ScriptAlias /phpenv "/home/vagrant/.phpenv/shims"
+ <Directory "/home/vagrant/.phpenv/shims">
+ Order allow,deny
+ Allow from all
+ </Directory>
+</IfModule>
+
+<IfModule mime_module>
+ AddType application/x-httpd-php5 .php
+</IfModule>
+
+<IfModule dir_module>
+ DirectoryIndex index.php index.html
+</IfModule>
+
+Action application/x-httpd-php5 "/phpenv/php-cgi"
+
+RewriteEngine On
+RewriteLog "/tmp/rewrite.log"
+RewriteLogLevel 9
View
32 .travis/travis-ci-vhost-sugarcrmce.txt
@@ -0,0 +1,32 @@
+<VirtualHost *:80>
+ ServerAdmin webmaster@localhost
+
+ DocumentRoot PATH
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride All
+ </Directory>
+ <Directory PATH >
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+ <Directory "/usr/lib/cgi-bin">
+ AllowOverride All
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+
+ # Possible values include: debug, info, notice, warn, error, crit,
+ # alert, emerg.
+ LogLevel warn
+
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+</VirtualHost>

0 comments on commit 4ef7396

Please sign in to comment.