0
我在我的nodejs项目中测试scss-lint存在问题。GitLab CI:在NodeJS上配置yaml文件
当测试达到SCSS皮棉,它给出了一个错误。
如何确保测试不会因测试本身的成功结果而下降?
我gitlab-ci.yml
image: node:wheezy
cache:
paths:
- node_modules/
stages:
- build
- test
gem_lint:
image: ruby:latest
stage: build
script:
- gem install scss_lint
artifacts:
paths:
- node_modules/
only:
- dev
except:
- master
install_dependencies:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules/
only:
- dev
except:
- master
scss-lint:
stage: test
script:
- npm run lint:scss-lint
artifacts:
paths:
- node_modules/
only:
- dev
except:
- master
谢谢,我会试试这个选项。 我能以不同的方式解决我的问题。 '''gem_scss_lint: 图像:红宝石:2.4 阶段:建立 脚本: - 宝石安装scss_lint - SCSS皮棉<文件或目录> 只: - dev的 除外: - 主 依赖关系: 阶段:建立 脚本: - NPM只安装 : - dev的 除了: - master''' – Dmytro