about summary refs log tree commit diff
path: root/.travis.yml
diff options
context:
space:
mode:
authorKeiji Matsuzaki <futoase@gmail.com>2017-05-03 19:20:38 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-03 12:20:38 +0200
commit90c00f075a42e9133af035b206a511d438954a3f (patch)
tree9dec5dca69edd8a5562c41fcd594ae5b2c168aac /.travis.yml
parent38473f0aa06c848092fe2562f122be75eaffa8d3 (diff)
Added support parallel_tests (#2740)
- Added new gem the `parallel_tests`.
- Updated .travis.yml.
  - Improved scripts and environment variable.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 58be0908f..015acd468 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,9 @@ env:
     - LOCAL_HTTPS=true
     - RAILS_ENV=test
     - CXX=g++-4.8
+    - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
+    - PARALLEL_TEST_PROCESSORS=2
+
 addons:
   postgresql: 9.4
   apt:
@@ -31,7 +34,7 @@ rvm:
 services:
   - redis-server
 
-bundler_args: --without development production --retry=3 --jobs=3
+bundler_args: --without development production --retry=3 --jobs=16
 
 install:
   - nvm install
@@ -40,10 +43,10 @@ install:
   - yarn install
 
 before_script:
-  - bundle exec rails db:create db:schema:load
+  - bundle exec rake parallel:create parallel:load_schema parallel:prepare
   - bundle exec rails assets:precompile
 
 script:
-  - bundle exec rspec
+  - bundle exec parallel_test spec/ --group-by filesize --type rspec
   - npm test
   - i18n-tasks unused