2017-08-25 68 views
1

有关于为circleci v1设置纱线但不是v2的文档,因为它看起来好像他们已经将纱线烘烤到v2 api中,但是,在我的配置中.yml我明确地运行yarn来安装我的代码,但是当我查看构建日志时,它显示npm用于我所有的纱线命令......我显然需要重写这个/安装纱线?不幸的是,似乎v2文档没有涉及到这一点,我的谷歌富有没有收获...circleci(v2.0)使用npm时,纱线是运行命令

更有趣的是,我的另一个项目是使用纱几乎完全相同的配置。 .. 是什么赋予了?

我的继承人目前config.yml

# Javascript Node CircleCI 2.0 configuration file 
# 
# Check https://circleci.com/docs/2.0/language-javascript/ for more details 
# 
version: 2 
jobs: 
    build: 
    docker: 
     # specify the version you desire here 
     - image: circleci/node:7.10 

     # Specify service dependencies here if necessary 
     # CircleCI maintains a library of pre-built images 
     # documented at https://circleci.com/docs/2.0/circleci-images/ 
     # - image: circleci/mongo:3.4.4 

    working_directory: ~/repo 

    steps: 
     - checkout 

     # Download and cache dependencies 
     - restore_cache: 
      keys: 
      - v1-dependencies-{{ checksum "package.json" }} 
      # fallback to using the latest cache if no exact match is found 
      - v1-dependencies- 

     - run: yarn 

     - save_cache: 
      paths: 
      - node_modules 
      key: v1-dependencies-{{ checksum "package.json" }} 

     # run tests! 
     - run: yarn test 
     - run: echo "ALL GOOD IN THE HOOD" 
     - deploy: 
      name: Deploy on deploy branch 
      command: | 
      if [ "${CIRCLE_BRANCH}" == "deploy" ]; then 
       ./node_modules/.bin/firebase ... 
      fi 

回答

0

我想通了这个问题。我的circleci文件夹拼写错误。我省略了.,它使用的是默认配置......叹息...