Sha256: c4204325c4d86181539a7c828610b94c49b6a19fb53357a9e1535f723a6ce860

Contents?: true

Size: 1.84 KB

Versions: 5

Compression:

Stored size: 1.84 KB

Contents

---
language: ruby
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.5
  - 2.2.0
addons:
  code_climate:
    repo_token: 38686058eed480dd0fcf8bce9015733e0bae88e44e30f4a1ac63df8aec2f86d8
before_install:
  - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
script:
  - bin/print_header.sh "Run specs for Knapsack gem"
  - bundle exec rspec spec

  - bin/print_header.sh "Generate knapsack report"
  - KNAPSACK_GENERATE_REPORT=true bundle exec rspec --default-path spec_examples --tag focus

  - bin/print_header.sh "Run specs with enabled time offset warning"
  - bundle exec rspec --default-path spec_examples

  - bin/print_header.sh "Run rake task for the first CI node"
  - CI_NODE_TOTAL=2 CI_NODE_INDEX=0 KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake knapsack:rspec
  - bin/print_header.sh "Run rake task for the second CI node"
  - CI_NODE_TOTAL=2 CI_NODE_INDEX=1 KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake knapsack:rspec

  - bin/print_header.sh "Check passing arguments to rspec. Run only specs with custom_focus tag"
  - KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake "knapsack:rspec[--tag custom_focus]"

  - bin/print_header.sh "Run specs with custom knapsack logger"
  - CUSTOM_LOGGER=true KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake knapsack:rspec

  - bin/print_header.sh "Run specs for custom knapsack report path"
  - cp knapsack_rspec_report.json knapsack_custom_report.json
  - KNAPSACK_REPORT_PATH="knapsack_custom_report.json" KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake knapsack:rspec

  - bin/print_header.sh "Run specs when spec file was removed and still exists in knapsack report json"
  - rm spec_examples/fast/1_spec.rb
  - KNAPSACK_TEST_FILE_PATTERN="spec_examples/**/*_spec.rb" bundle exec rake knapsack:rspec
notifications:
  email: false

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
knapsack-1.1.1 .travis.yml
knapsack-1.1.0 .travis.yml
knapsack-1.0.4 .travis.yml
knapsack-1.0.3 .travis.yml
knapsack-1.0.2 .travis.yml