From dbdd59b83ae95da4cf98d1b913e9296b86226c72 Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Mon, 29 Jun 2020 12:18:00 -0500 Subject: [PATCH] Feature: Introduce KnapsackPro Queue Mode (#8938) * Feature: Introduce KnapsackPro Queue Mode * Run specs at the end to get the greatest speedup --- .travis.yml | 5 ++--- bin/knapsack_pro_rspec | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f815a86e..a00025a5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ -sudo: required language: ruby cache: directories: @@ -64,13 +63,13 @@ script: - bundle exec rails webpacker:compile - bundle exec rails db:schema:load - './cc-test-reporter before-build' - - 'bin/knapsack_pro_rspec' - - '[ ! -f .approvals ] || bundle exec approvals verify --ask false' - if [ "$KNAPSACK_PRO_CI_NODE_INDEX" == "0" ]; then yarn test --colors; fi - if [ "$KNAPSACK_PRO_CI_NODE_INDEX" == "0" ]; then ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.lcov.json; fi - if [ "$KNAPSACK_PRO_CI_NODE_INDEX" == "1" ]; then bundle exec bundle-audit check --update --ignore CVE-2015-9284; fi - if [ "$KNAPSACK_PRO_CI_NODE_INDEX" == "1" ]; then yarn build-storybook; fi - if [ "$KNAPSACK_PRO_CI_NODE_INDEX" == "2" ]; then bundle exec rails runner -e production 'puts "App booted successfully"'; fi + - 'bin/knapsack_pro_rspec' + - '[ ! -f .approvals ] || bundle exec approvals verify --ask false' after_script: - ./cc-test-reporter format-coverage -t simplecov -o ./coverage/codeclimate.$KNAPSACK_PRO_CI_NODE_INDEX.json ./coverage/spec/.resultset.json - ./cc-test-reporter sum-coverage --output - --parts $COVERAGE_REPORTS_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --input - diff --git a/bin/knapsack_pro_rspec b/bin/knapsack_pro_rspec index 8f621d186..c3cce9566 100755 --- a/bin/knapsack_pro_rspec +++ b/bin/knapsack_pro_rspec @@ -4,5 +4,5 @@ if [ "$KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC" = "" ]; then KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC=disabled-for-fork \ bundle exec rake knapsack_pro:rspec # use Regular Mode here always else - bundle exec rake knapsack_pro:rspec + bundle exec rake knapsack_pro:queue:rspec fi