-
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.
Merge pull request #177 from palantirnet/circleci-convenience-image-u…
…pdate Use new CircleCI convenience image for PHP
- Loading branch information
Showing
4 changed files
with
22 additions
and
32 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
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
version: 2 | ||
version: 2.1 | ||
# To use browsers on CircleCI, uncomment the lines below and add steps to install them. | ||
# For example, add these to `jobs.build.steps`: | ||
# - browser-tools/install-chrome | ||
# - browser-tools/install-chromedriver | ||
# orbs: | ||
# browser-tools: circleci/[email protected] | ||
jobs: | ||
build: | ||
working_directory: ~/${projectname} | ||
docker: | ||
- image: circleci/php:7.3-node-browsers | ||
- image: circleci/mysql:5.7-ram | ||
- image: cimg/php:7.4-node-browsers | ||
- image: cimg/mysql:5.7 | ||
command: --max_allowed_packet=16M | ||
environment: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
|
@@ -20,8 +26,7 @@ jobs: | |
- run: | ||
name: Install packages | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y libpng-dev default-mysql-client | ||
sudo apt-get update && sudo apt-get install -y libpng-dev default-mysql-client | ||
- run: | ||
name: Install nvm | ||
command: | | ||
|
@@ -30,14 +35,10 @@ jobs: | |
touch $BASH_ENV | ||
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV | ||
- run: | ||
name: Install PHP extensions | ||
command: sudo docker-php-ext-install pdo_mysql gd | ||
- run: | ||
name: Configure PHP | ||
command: | | ||
echo "sendmail_path=/bin/true" | sudo tee -a "/usr/local/etc/php/php.ini" | ||
echo "memory_limit=-1" | sudo tee -a "/usr/local/etc/php/php.ini" | ||
echo "sendmail_path=/bin/true" | sudo tee -a "/etc/php.d/circleci.ini" | ||
- run: | ||
name: Create artifacts directory | ||
command: mkdir /tmp/artifacts | ||
|
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
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