-
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 remote-tracking branch 'origin/develop' into fail-on-build-errors
- Loading branch information
Showing
12 changed files
with
65 additions
and
96 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
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,20 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# Wrapper for our install command; at least this way it's somewhat discoverable. | ||
# Previously: | ||
# | ||
# The install command boils down to: | ||
# vendor/bin/phing -f vendor/palantirnet/the-build/targets/install.xml | ||
# | ||
# * This script requires Composer 2.2.2 or greater, because of a series of script proxying | ||
# changes between 2.1.x and 2.2.2. This requirement is enforced in composer.json. | ||
# * This script assumes the composer bin dir is at vendor/bin/ | ||
|
||
# Relative path to this script. | ||
SCRIPT=$(readlink "$0") | ||
|
||
# Absolute path to this script's parent directory. | ||
SCRIPTPATH=$(cd `dirname $0` && cd `dirname $SCRIPT` && pwd) | ||
|
||
REPOPATH=$(cd `dirname $SCRIPTPATH` && cd ../../../ && pwd) | ||
|
||
if [ "$REPOPATH" = `pwd` ]; then | ||
# Run our install task. | ||
$SCRIPTPATH/../../../bin/phing -f $SCRIPTPATH/../targets/install.xml | ||
else | ||
echo "Please run this command from your project root." | ||
# Composer 2.2.2 through 2.2.6 | ||
if [ "$COMPOSER_BIN_DIR" != "" ]; then | ||
COMPOSER_RUNTIME_BIN_DIR="$COMPOSER_BIN_DIR" | ||
fi | ||
|
||
(cd $COMPOSER_RUNTIME_BIN_DIR/../../ && $COMPOSER_RUNTIME_BIN_DIR/phing -f $COMPOSER_RUNTIME_BIN_DIR/../palantirnet/the-build/targets/install.xml) |
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
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-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,35 +35,21 @@ 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: Update Composer | ||
command: | | ||
sudo composer self-update | ||
- run: | ||
name: Create artifacts directory | ||
command: mkdir /tmp/artifacts | ||
- run: | ||
name: Configure URL in /etc/hosts | ||
command: echo 127.0.0.1 ${CIRCLE_PROJECT_REPONAME}.local | sudo tee -a /etc/hosts | ||
|
||
# Note: phing and drupal-check have mutually exclusive requirements. | ||
# It'd be better to add drupal-check as a dependency of the drupal project | ||
# rather than as part of the virtual environment, but this will have to do | ||
# for now. Also note, drupal-check is added as part of the-vagrant so it | ||
# is available to run within our VM. | ||
# Note 2: drupal-check is pinned to a known stable version. | ||
- run: | ||
name: Install drupal-check | ||
command: | | ||
curl -O -L https://github.com/mglaman/drupal-check/releases/download/1.0.9/drupal-check.phar | ||
mkdir --parents ~/bin | ||
mv drupal-check.phar ~/bin/drupal-check | ||
chmod +x ~/bin/drupal-check | ||
# Composer package cache | ||
- restore_cache: | ||
keys: | ||
|
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
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
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