We’ve had 2 people spend hours on this. We can not figure out how to get the package ext-zip
installed and working properly.
Running these commands gets it installed.
sudo apt-get install libzip-dev
sudo apt-get install zip
But PHP does not see it.
#!/bin/bash -eo pipefail
composer install -n --prefer-dist
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- facebook/webdriver 1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- facebook/webdriver 1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for facebook/webdriver 1.4.1 -> satisfiable by facebook/webdriver[1.4.1].
Exited with code 2
This is my configuration file
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/php:7.0.23-browsers
working_directory: ~/laravel
steps:
- checkout
- run: sudo apt install -y libsqlite3-dev
- run: composer self-update
- restore_cache:
keys:
- composer-v1-{{ checksum "composer.json" }}
- composer-v1-
- run: composer install -n --prefer-dist
- save_cache:
key: composer-v1-{{ checksum "composer.json" }}
paths:
- vendor
- run: touch database/database.sqlite
- run: php artisan migrate --env=testing --force
- run: php vendor/bin/phpunit
- run: sudo apt-get install -y libsqlite3-dev
- run: cp .env.testing .env
- run: composer install -n --ignore-platform-reqs
- run: npm install
- run: npm run production
- run: vendor/bin/phpunit