We need github.com/drupalcommerce/commerce_shipping running Travis. And we need to make the build green.

1) Add the .travis files (copy from Commerce)
2) Make the tests pass with Commerce -dev (we have failures in kernel tests, and in Functional/ShippingMethodTest).

Comments

bojanz created an issue. See original summary.

  • bojanz committed 45077f1 on 8.x-2.x
    Issue #2873939 by bojanz: Enable travis, fix the build
    
bojanz’s picture

Status: Active » Needs work

Pushed the current progress, Travis is now running, and phpcs is passing.

Last build: https://travis-ci.org/drupalcommerce/commerce_shipping/jobs/227048792

Getting odd test results though:
1) ShippingMethodTest is passing even though it fails for me locally
2) run-tests.sh on Travis complains about not being able to find PackageTypeTest and TrackingLinkFormatterTest, but finds them just fine for me locally.

EDIT: Found out the reason, Travis is pulling in beta2 instead of using the latest commit. Not yet sure why, the same config works fine for Commerce.

bojanz’s picture

Travis issue resolved by adding a composer.json, latest build: https://travis-ci.org/drupalcommerce/commerce_shipping/jobs/227055047

The remaining task is now to fix ShippingMethodTest. It was broken by #2863805: Plugin select widgets show weight field exposed when AJAX, and broken. in Commerce.

bojanz’s picture

Status: Needs work » Fixed

And we're green.

  • bojanz committed fadb95d on 8.x-2.x
    Issue #2873939 by bojanz, part II: Fix ShippingMethodTest.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.