.travis.yml in knapsack-1.10.0 vs .travis.yml in knapsack-1.11.0
- old
+ new
@@ -51,10 +51,11 @@
- KNAPSACK_TEST_FILE_PATTERN="spec_examples/**{,/*/**}/*_spec.rb" bundle exec rake knapsack:rspec
- bin/print_header.sh "Run specs from multiple directories with manually specified test_dir"
- KNAPSACK_TEST_DIR=spec_examples KNAPSACK_TEST_FILE_PATTERN="{spec_examples,spec_engine_examples}/**{,/*/**}/*_spec.rb" bundle exec rake knapsack:rspec
+
- bin/print_header.sh "------------------------------------------------------"
# Tests for example minitest test suite
- bin/print_header.sh "Generate knapsack report"
@@ -80,7 +81,34 @@
- KNAPSACK_REPORT_PATH="knapsack_custom_minitest_report.json" KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bundle exec rake knapsack:minitest
- bin/print_header.sh "Run tests when test file was removed and still exists in knapsack report json"
- rm test_examples/fast/unit_test.rb
- KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bundle exec rake knapsack:minitest
+
+
+ - bin/print_header.sh "------------------------------------------------------"
+
+
+ # Tests for example spinach test suite
+ - bin/print_header.sh "Generate knapsack report"
+ - KNAPSACK_GENERATE_REPORT=true bundle exec spinach -f spinach_examples
+
+ - bin/print_header.sh "Run tests with enabled time offset warning"
+ - bundle exec spinach -f spinach_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="spinach_examples/**{,/*/**}/*.feature" bundle exec rake "knapsack:spinach[-f spinach_examples]"
+ - bin/print_header.sh "Run rake task for the second CI node"
+ - CI_NODE_TOTAL=2 CI_NODE_INDEX=1 KNAPSACK_TEST_FILE_PATTERN="spinach_examples/**{,/*/**}/*.feature" bundle exec rake "knapsack:spinach[-f spinach_examples]"
+
+ - bin/print_header.sh "Run tests with custom knapsack logger"
+ - CUSTOM_LOGGER=true KNAPSACK_TEST_FILE_PATTERN="spinach_examples/**{,/*/**}/*.feature" bundle exec rake "knapsack:spinach[-f spinach_examples]"
+
+ - bin/print_header.sh "Run tests for custom knapsack report path"
+ - cp knapsack_spinach_report.json knapsack_custom_spinach_report.json
+ - KNAPSACK_REPORT_PATH="knapsack_custom_spinach_report.json" KNAPSACK_TEST_FILE_PATTERN="spinach_examples/**{,/*/**}/*.feature" bundle exec rake "knapsack:spinach[-f spinach_examples]"
+
+ - bin/print_header.sh "Run tests when test file was removed and still exists in knapsack report json"
+ - rm spinach_examples/scenario1.feature
+ - KNAPSACK_TEST_FILE_PATTERN="spinach_examples/**{,/*/**}/*.feature" bundle exec rake "knapsack:spinach[-f spinach_examples]"
notifications:
email: false