Updated on 2024-04-03 GMT+08:00

Using YAML to Build in PHP

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - php:
       inputs:
          command: |-
                        composer config -g secure-http false
                        composer config -g repo.packagist composer http://mirrors.tools.huawei.com/php/
                        composer install
                        tar -zcvf php-composer.tgz *

Parameter

Type

Description

Mandatory

Default Value

command

string

Execute commands.

Yes

None