2017-08-25 40 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文件夾拼寫錯誤。我省略了.,它使用的是默認配置......嘆息...