I have configured a PHP image for my Bitbucket's Pipelines that runs scripts thru a YML file. I have a laravel repository and want to execute a build command.
Though the problem is that on my script, when it runs the npm install
, it fails.
bash: npm: command not found
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.1.1
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- npm install --global gulp-cli
- npm install
- gulp --production