Testing Flow package on Travis-ci fails

Hi all

Tried to setup automatic testing of our Aimeos Flow package on Travis-ci based on the flow distribution but the composer install of typo3/flow fails (3.0.0 and 2.3.6) with:

  • Installing typo3/flow (3.0.0) Downloading: connection… Failed to download typo3/flow from dist: Could not authenticate against github.com Now trying to download from source

  • Installing typo3/flow (3.0.0) Cloning 8e5d01a3ffcfc37c528b691768625ca1ce70fe86 8e5d01a3ffcfc37c528b691768625ca1ce70fe86 is gone (history was rewritten?)

[RuntimeException] Failed to execute git checkout ‘8e5d01a3ffcfc37c528b691768625ca1ce70fe86’ & & git reset --hard ‘8e5d01a3ffcfc37c528b691768625ca1ce70fe86’ fatal: reference is not a tree: 8e5d01a3ffcfc37c528b691768625ca1ce70fe86

This does only happen on Travis-ci (full log here: https://travis-ci.org/aimeos/aimeos-flow/jobs/86662857). Locally checkout works fine.

What causes this problem?

Thanks

Toco

Hey

History was rewritten when moving to Github, try updating composer.lock. You might need to delete the packages and reinstall them to update the file, or even delete Packages/Libraries/composer/installed.json first to update it.

Doubt it’s related to Travis, since https://github.com/neos/neos-development-collection and https://github.com/neos/flow-development-collection work just fine with Travis for all maintained branches.

Hi Aske

This happens during

composer create-project typo3/flow-base-distribution ../flow

so there’s nothing we can delete before. Any other suggestions?

Thanks

Toco

Hmm not sure why then.

But try doing a clone and composer install instead of create-project, since it has a couple of quirks and inconsistencies compared to install.

Example: https://github.com/neos/flow-development-collection/blob/3.0/.travis.yml

Thanks, that did the job!