Skip to content

Commit

Permalink
Update the circle.dist.yml to use PHP 7 and Node 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Apr 11, 2018
1 parent 056d9ad commit 9577501
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions circle.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ machine:
hosts:
@[email protected]: 127.0.0.1
php:
version: 5.6.22
version: 7.1.9
node:
version: 0.12.0
version: 6.11.4
environment:
PALANTIR_ENVIRONMENT: circle

Expand All @@ -16,39 +16,29 @@ general:

dependencies:
pre:
# Workaround for broken symlink at /usr/lib/apache2/modules/libphp5.so
- sudo unlink /usr/lib/apache2/modules/libphp5.so
- sudo ln -s /opt/circleci/php/5.6.22/usr/lib/apache2/modules/libphp5.so /usr/lib/apache2/modules/libphp5.so
# Disable XDebug
- rm "/opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini"
# Enable the Apache rewrite module
- sudo a2enmod rewrite
# Set up the project webroot
- sudo cp $HOME/$CIRCLE_PROJECT_REPONAME/conf/apache.circle.conf /etc/apache2/sites-available/000-default.conf
- sudo sed -e "s?%PROJECT_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
# Configure PHP
- echo "sendmail_path=/bin/true" >> "/opt/circleci/php/$(phpenv version-name)/etc/php.ini"
- echo "date.timezone=America/Chicago" >> "/opt/circleci/php/$(phpenv version-name)/etc/php.ini"
- echo "memory_limit=256M" > "/opt/circleci/php/$(phpenv version-name)/etc/conf.d/memory.ini"
# Finally, restart Apache
- sudo service apache2 restart
# Disable XDebug
- rm "/opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini"
# Start the PHP development server
- nohup php -S localhost:8000 -t web/ > "${CIRCLE_ARTIFACTS}/phpd.log" 2>&1 &

override:
- composer install --no-interaction
- yarn --cwd styleguide/ install

cache_directories:
- styleguide/node_modules
- vendor
- web/core
- web/modules/contrib
- web/profiles/contrib
- ~/.composer
- ~/.npm

test:
pre:
- npm --prefix styleguide/ install styleguide/
- vendor/bin/phing build install migrate
- vendor/bin/phing build
- vendor/bin/phing install
- vendor/bin/phing migrate

override:
- vendor/bin/phing code-review
Expand Down

0 comments on commit 9577501

Please sign in to comment.