我正在尝试将gitlab-ci.yml添加到我的项目中,但是我收到以下错误:
Error: (<unknown>): mapping values are not allowed in this context at line 10 column 15
before-script:
- bash ci/install.sh > /dev/null
cache:
paths:
- vendor/
test:5.6:
image: php:5.6
script:
- vendor/bin/codecept run
test:7.0:
image: php:7.0
script:
- vendor/bin/codecept run
答案 0 :(得分:2)
在玩弄后,我发现正确的语法是:
before_script:
- bash ci/install.sh > /dev/null
test:5.6:
image: php:5.6
script:
- vendor/bin/codecept run
test:7.0:
image: php:7.0
script:
- vendor/bin/codecept run