Properly format jobs list
This commit is contained in:
parent
8342b4c283
commit
8f1df20c54
1 changed files with 72 additions and 71 deletions
143
.travis.yml
143
.travis.yml
|
|
@ -35,74 +35,75 @@ env:
|
||||||
- CCTR=./cc-test-reporter
|
- CCTR=./cc-test-reporter
|
||||||
- TOTAL_TEST_SUITES=5
|
- TOTAL_TEST_SUITES=5
|
||||||
jobs:
|
jobs:
|
||||||
- &tests
|
include:
|
||||||
before_install:
|
- &tests
|
||||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
before_install:
|
||||||
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||||
- gem install bundler -v $(tail -n 1 Gemfile.lock)
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
||||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $CCTR
|
- gem install bundler -v $(tail -n 1 Gemfile.lock)
|
||||||
- chmod +x $CCTR
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $CCTR
|
||||||
before_script:
|
- chmod +x $CCTR
|
||||||
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
before_script:
|
||||||
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
||||||
- $CCTR before-build
|
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
||||||
script:
|
- $CCTR before-build
|
||||||
- "bin/travis_script.sh $TEST_SUITE"
|
script:
|
||||||
after_success:
|
- "bin/travis_script.sh $TEST_SUITE"
|
||||||
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.1.json ./coverage/spec/.resultset.json
|
after_success:
|
||||||
env:
|
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.1.json ./coverage/spec/.resultset.json
|
||||||
- TEST_SUITE=ability
|
env:
|
||||||
workspaces:
|
- TEST_SUITE=ability
|
||||||
create:
|
workspaces:
|
||||||
name: ws1
|
create:
|
||||||
paths:
|
name: ws1
|
||||||
- coverage/codeclimate.1.json
|
paths:
|
||||||
- <<: *tests
|
- coverage/codeclimate.1.json
|
||||||
env:
|
- <<: *tests
|
||||||
- TEST_SUITE=features
|
env:
|
||||||
after_success:
|
- TEST_SUITE=features
|
||||||
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.2.json ./coverage/spec/.resultset.json
|
after_success:
|
||||||
workspaces:
|
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.2.json ./coverage/spec/.resultset.json
|
||||||
create:
|
workspaces:
|
||||||
name: ws2
|
create:
|
||||||
paths:
|
name: ws2
|
||||||
- coverage/codeclimate.2.json
|
paths:
|
||||||
- <<: *tests
|
- coverage/codeclimate.2.json
|
||||||
env:
|
- <<: *tests
|
||||||
- TEST_SUITE=models
|
env:
|
||||||
after_success:
|
- TEST_SUITE=models
|
||||||
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.3.json ./coverage/spec/.resultset.json
|
after_success:
|
||||||
workspaces:
|
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.3.json ./coverage/spec/.resultset.json
|
||||||
create:
|
workspaces:
|
||||||
name: ws3
|
create:
|
||||||
paths:
|
name: ws3
|
||||||
- coverage/codeclimate.3.json
|
paths:
|
||||||
- <<: *tests
|
- coverage/codeclimate.3.json
|
||||||
env:
|
- <<: *tests
|
||||||
- TEST_SUITE=controllers
|
env:
|
||||||
after_success:
|
- TEST_SUITE=controllers
|
||||||
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.4.json ./coverage/spec/.resultset.json
|
after_success:
|
||||||
workspaces:
|
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.4.json ./coverage/spec/.resultset.json
|
||||||
create:
|
workspaces:
|
||||||
name: ws4
|
create:
|
||||||
paths:
|
name: ws4
|
||||||
- coverage/codeclimate.4.json
|
paths:
|
||||||
- <<: *tests
|
- coverage/codeclimate.4.json
|
||||||
env:
|
- <<: *tests
|
||||||
- TEST_SUITE=features
|
env:
|
||||||
after_success:
|
- TEST_SUITE=features
|
||||||
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.5.json ./coverage/spec/.resultset.json
|
after_success:
|
||||||
workspaces:
|
- $CCTR format-coverage -t simplecov -o ./coverage/codeclimate.5.json ./coverage/spec/.resultset.json
|
||||||
create:
|
workspaces:
|
||||||
name: ws5
|
create:
|
||||||
paths:
|
name: ws5
|
||||||
- coverage/codeclimate.5.json
|
paths:
|
||||||
- stage: finalize
|
- coverage/codeclimate.5.json
|
||||||
workspaces:
|
- stage: finalize
|
||||||
use:
|
workspaces:
|
||||||
- ws1
|
use:
|
||||||
- ws2
|
- ws1
|
||||||
- ws3
|
- ws2
|
||||||
- ws4
|
- ws3
|
||||||
- ws5
|
- ws4
|
||||||
script: $CCTR sum-coverage --output - --parts $TOTAL_TEST_SUITES coverage/codeclimate.*.json | $CCTR upload-coverage --input -
|
- ws5
|
||||||
|
script: $CCTR sum-coverage --output - --parts $TOTAL_TEST_SUITES coverage/codeclimate.*.json | $CCTR upload-coverage --input -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue