CI integration issue

Hi, am getting this error. And pretty new to CI so, i don’t know how to go about solving this issue

PHP Warning:  require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /home/ubuntu/kaziplus-api/vendor/phpunit/phpunit/PHPUnit/Autoload.php on line 45

This is my circle.yml:

## Customize the test machine
machine:

  timezone:
    Africa/Nairobi # Set the timezone

  # Version of ruby to use
  php:
    version: 7.0.4

  # Add some environment variables
  environment:
  # - none

## Customize checkout
checkout:
  post:
    - git submodule sync
    - git submodule update --init # use submodules

## Customize dependencies
dependencies:
  pre:
    #none

  override:
    #none
  cache_directories:
    - "custom_1"
    - "~/custom_2"

## Customize database setup
database:
  override:
    # none

## Customize test commands
test:
  override:
    # none

Anything that am missing? Thanks

Finally came to fix the issue. The problem was

  • I was using the correct tests but the wrong version for php unit (2.0) which i had to change to 5.5
  • Secondly i had to remove the composer.lock since it has all the old information about the package.

Now everything works fine with a simple git push. Happy integration

1 Like

Glad you were able to figure this out, thanks for posting the solution!