Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Initial pipeline build fails...

pimd1988 October 12, 2018

Hello,

I want to setup pipelines for a new project, starting in a small playground I have this bitbucket-pipelines.yml file:

 

# 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:5.6.37

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
- vendor/bin/phpunit

Commited and pushed it starts building but it fails to build. 

It fails on the 'composer install', warning me to not run composer as root... Well I have no idea how to fix this because I am completely new to this. Notice I have selected PHP 5.6.37 because what I finally want to achieve is to setup Pipelines with a CodeIgniter 2.x webapplication (legacy project).

Can someone help me out as I have no clue at all...

Cheers,

Pim

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events