【发布时间】:2021-04-15 08:36:42
【问题描述】:
晚上好, 我正在尝试使用 Angular ng test 命令实现 Gitlab CI/CD。管道运行,
但挂起。我知道 Karma 使用铬。我不确定要添加什么。感谢您提供任何帮助。
image: node:latest
before_script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- npm link @angular/cli
stages:
- test
- production
unit-test:
stage: test
image: trion/ng-cli-karma:${CLI_VERSION}
script:
- npm install
- ng test
only:
- master
production:
type: deploy
stage: production
image: ruby:latest
script:
- dpl --provider=heroku --app=$HEROKU_APP_PRODUCTION --api-key=$HEROKU_API_KEY
only:
- master
【问题讨论】:
标签: node.js angular unit-testing karma-jasmine