-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the circle.dist.yml to use PHP 7 and Node 6.
- Loading branch information
Showing
1 changed file
with
10 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|