ฉันดิ้นรนมาเกือบทั้งวันในการตั้งค่า Travis ด้วย Parallel_tests และไม่เข้าใจว่าเหตุใดจึงไม่ทำงาน
# .travis.yml
language: ruby
rvm:
- 2.2.2
env:
- DB=postgresql
cache: bundler
addons:
postgresql: "9.4"
services:
- postgresql
- redis
script:
- RAILS_ENV=test bundle exec rake teaspoon
- RAILS_ENV=test xvfb-run -a bundle exec rake parallel:spec
before_script:
- "sh -e /etc/init.d/xvfb start"
- cp config/database.travis.yml config/database.yml
- export PARALLEL_TEST_PROCESSORS=4
- RAILS_ENV=development bundle exec rake db:drop
- RAILS_ENV=development bundle exec rake db:create
- RAILS_ENV=development bundle exec rake db:migrate
- bundle exec rake parallel:create
- bundle exec rake parallel:prepare
ฐานข้อมูลของฉัน.travis.yml
development:
adapter: postgresql
encoding: utf8
host: localhost
database: adiq_dev
pool: 25
username: postgres
password:
test:
adapter: postgresql
encoding: utf8
host: localhost
database: adiq_test<%= ENV['TEST_ENV_NUMBER'] %>
pool: 25
username: postgres
password:
ในการเตรียมตัวแบบคู่ขนาน ฉันก็ได้รับสิ่งนี้มาเรื่อยๆ
You have 174 pending migrations:
...
...
Run rake db:migrate to update your database then try again.
The command "bundle exec rake parallel:prepare" failed and exited with 1 during .
ดูเหมือนว่าสายการบังคับบัญชาที่แน่นอนจะทำงานได้ดีในพื้นที่ของฉัน ฉันไม่เข้าใจ ฉันจะผิดตรงไหน?
ข้อเสนอแนะใด ๆ จะมีคุณค่าอันล้ำค่า .... ฉันใช้เวลาหลายชั่วโมงในการพยายามทำให้งานนี้สำเร็จ
rake db:migrate
ระหว่างขั้นตอนการสร้างและการเตรียมการ หรือหลังขั้นตอนการจัดเตรียม - person набиячлэвэли   schedule 07.02.2016