Firstly as I'm using Magento Enterprise I don't think I can pull against a git repository where I know the tests are passing. I presume that these are being run in travis-ci.com rather than .org
Secondly I'm not sure I would want to anyway, as the github repro's have all the code in /app/code
rather than /vendor
.
So because I want to start to build out my Continuous Integration Pipeline, I follow the below steps:
- Install EE v2.1.7 using composer
- Commit to private git repository
- Connect private repository to private travis-ci.com account
- Edit
.travis.yml
to add encrypted credentials Edit
.travis.yml
to give correct execute permissions on:./dev/travis/before_install.sh
and./dev/travis/before_script.sh
before_install: - chmod +x ./dev/travis/before_install.sh - ./dev/travis/before_install.sh install: - echo "{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}" > auth.json - composer install --no-interaction --prefer-dist before_script: - chmod +x ./dev/travis/before_script.sh - ./dev/travis/before_script.sh
Commit and Push to git
- Check build at travis-ci.com
Expect Result - build passes Actual Result - build fails
As I said above the community git repository has the code in /app/code
are they only running tests from an /App/code
setup? Is there some compatibility issue here from running them from the vendor
folder.
I'm getting numerous. PHP Fatal error: Uncaught exception 'Exception' with message 'Asymmetric transaction rollback.'
As pointed out here "Asymmetric transaction rollback error" in integration test this is a false error message as it means that an exception has been re-thrown in the commit callbacks - meaning that the true error message is lost.
One true stack trace is:
There was 1 error:
1) Magento\Customer\Model\GroupManagementTest::testGetDefaultGroupWithNonDefaultStoreId
Magento\Framework\Exception\NoSuchEntityException: No such entity with groupId = , storeId = 5
- Why would a clean install fail? - presumably the core-team's travis file has the correct set up to create environments for passing tests?
- And presumably they have actually run these tests?
I am really hoping this is environmental. I don't want to be digging around in the core looking for core bugs - I want to start with a nice clean build before I start adding stuff...
Any ideas?