2017-06-23 3 views
0

サークルciに追加のコンテナを追加して、テストをパラレルに実行しようとしました。サークルCi-rspecテストを並列に

これは私のcircle.ymlファイルです。

machine: 
    ruby: 
    version: 2.3.0 
database: 
    post: 
    - cp config/sunspot.ci.yml config/sunspot.yml 
    - bundle exec sunspot-solr start -p 8981 
dependencies: 
    pre: 
    - sudo apt-get update; sudo apt-get -y install solr-tomcat 

test: 
    override: 
    - rvm use 2.3.0 && bundle exec rspec --color --format progress: 
     environment: 
      RAILS_ENV: test 
     parallel: true 
     files: 
      - "spec/**/*_spec.rb" 

しかし、テストは並行して実行されていないようです。 私は何が欠けていますか?事前に感謝

+0

私は同じ問題を抱えています。私はテストセクションの下のすべてを修正することに終わり、何とか自動的に働きました。 – knagode

答えて

0

何かの理由で、テストセクションからrvm use 2.3.0を削除すると私の問題は解決しました。

machine: 
    ruby: 
    version: 2.3.0 
database: 
    # After default database task finished 
    post: 
    # Circle CI already replace our original sunspot.yml, replace it with backup copy `config/sunspot.yml.ci` 
    - cp config/sunspot.ci.yml config/sunspot.yml 
    - bundle exec sunspot-solr start -p 8981 
dependencies: 
    pre: 
    - sudo apt-get update; sudo apt-get -y install solr-tomcat 

test: 
    override: 
    - bundle exec rspec --tag [email protected] --color --profile 20 --format progress: 
     timeout: 240 
     environment: 
      RAILS_ENV: test 
     parallel: true 
     files: 
      - my files here 
関連する問題