几周前我在这里得到了一些关于 gitlab ci 的大力帮助,因为我以前从未使用过它。我已经取得了不错的进展,现在到了最后一部分,将 Gulp 的输出包含在工件 zip 中。
所以目前我的构建 .yml 文件如下所示:
cache:
paths:
- vendor/
- node_modules/
before_script:
# Install git (the php image doesn't have it) which is required by composer
- apt-get update -yqq
- apt-get install git unzip -yqq
- apt-get install php-pear -yqq
# Install composer
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
# Setup PHPCompatibility for php_codesniffer
- mkdir --parents vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility
- cp -R vendor/wimg/php-compatibility/* vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCompatibility
stages:
- compatibility_test
- coding_standards
- …Run Code Online (Sandbox Code Playgroud)