Need help with CircleCI 2.0


#1

Question from @rachel_norfolk
Trying to get CircleCI running.
Behat is saying there is nothing on port 80 / local port. Connection is refused. Seems like web server is not running.

#!/bin/sh

cd ~/working/web
…/vendor/bin/drush site-install config_installer --yes --db-url=sqlite://sites/default/files/.circleci.sqlite config_installer_sync _configure_form.sync_directory=…/config/sync
sleep 5
cd ~/working/tests
mkdir ~/working/test-reports
mkdir ~/working/test-reports/cucumber
./behat -f pretty -o std -f junit -o ~/working/test-reports/cucumber/junit.xml

version: 2

jobs:
build:
docker:
- image: circleci/php:7.1-fpm-browsers
working_directory: ~/working
steps:
- checkout
- run: sudo apt-get update -y
- run: sudo apt-get install -y libpng-dev
- run: sudo docker-php-ext-install gd
- run: sudo docker-php-ext-install mbstring
- run: php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
- run: php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
- run: php composer-setup.php
- run: php -r “unlink(‘composer-setup.php’);”
- run: php composer.phar self-update
- restore_cache:
keys:
- composer-v1-{{ checksum “composer.json” }}
- composer-v1-
- run: php composer.phar install -n --prefer-dist
- save_cache:
key: composer-v1-{{ checksum “composer.json” }}
paths:
- vendor
- run: ~/working/.circleci/prepare-and-test.sh
- store_artifacts:
path: test-results
prefix: test-results
- store_test_results:
path: test-reports


#2