Feature: Introduce KnapsackPro Queue Mode (#8938)
* Feature: Introduce KnapsackPro Queue Mode * Run specs at the end to get the greatest speedup
This commit is contained in:
parent
33222e430c
commit
dbdd59b83a
2 changed files with 3 additions and 4 deletions
|
|
@ -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 -
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue