2017-08-25 8 views
1

circleci v1ではなくv2で糸を設定する方法についてのドキュメントがありますが、v2 apiに糸が詰まっているかのように見えます.yml私は明示的に私のdepsをインストールするためにヤーンを実行しました。ビルドログを見直すと、npmがすべての私のヤーンコマンドに使用されていることが示されます...私は明らかにこの/ install糸をオーバーライドする必要がありますか?残念ながら、v2のドキュメントはこれに触れておらず、私のgoogle-fooは実り多いものではないようです...糸が実行コマンドであるときにnpmを使用するcircleci(v2.0)

私のプロジェクトの別の1つはほとんど同じ設定の糸を使用しています。 ..何を与える?

HERESに私の現在の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フォルダのスペルが間違っていました。私は.を省略し、デフォルトの設定を使っていました... ...

関連する問題