Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use composer for travis setup

  • Loading branch information...
commit ad646d014c35641ca2545feb8866ef50e60bd6ad 1 parent 856bfd9
Lukas Kahwe Smith lsmith77 authored
9 .travis.yml
@@ -4,8 +4,9 @@ php:
4 4 - 5.4
5 5
6 6 env:
7   - - SYMFONY_VERSION=v2.0.12
8   - - SYMFONY_VERSION=origin/2.0
9   - - SYMFONY_VERSION=origin/master
  7 + - SYMFONY_VERSION=2.0.*
  8 + - SYMFONY_VERSION=2.1.*
  9 + - SYMFONY_VERSION=dev-master
10 10
11   -before_script: php Tests/vendors.php
  11 +before_script:
  12 + - composer require symfony/framework-bundle:${SYMFONY_VERSION}
24 Tests/autoload.php.dist
... ... @@ -1,24 +0,0 @@
1   -<?php
2   -
3   -$vendorDir = __DIR__.'/../vendor';
4   -require_once $vendorDir.'/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
5   -
6   -use Symfony\Component\ClassLoader\UniversalClassLoader;
7   -
8   -$loader = new UniversalClassLoader();
9   -$loader->registerNamespaces(array(
10   - 'Symfony' => array($vendorDir.'/symfony/src'),
11   -));
12   -
13   -$loader->register();
14   -
15   -spl_autoload_register(function($class) {
16   - if (0 === strpos($class, 'Liip\\MonitorBundle\\')) {
17   - $path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
18   - if (!stream_resolve_include_path($path)) {
19   - return false;
20   - }
21   - require_once $path;
22   - return true;
23   - }
24   -});
9 Tests/bootstrap.php
... ... @@ -1,7 +1,8 @@
1 1 <?php
2 2
3   -if (file_exists($file = __DIR__.'/autoload.php')) {
4   - require_once $file;
5   -} elseif (file_exists($file = __DIR__.'/autoload.php.dist')) {
6   - require_once $file;
  3 +$file = __DIR__.'/../vendor/autoload.php';
  4 +if (!file_exists($file)) {
  5 + throw new RuntimeException('Install dependencies to run test suite.');
7 6 }
  7 +
  8 +$autoload = require_once $file;
26 Tests/vendors.php
... ... @@ -1,26 +0,0 @@
1   -#!/usr/bin/env php
2   -<?php
3   -
4   -set_time_limit(0);
5   -
6   -$vendorDir = __DIR__.'/../vendor';
7   -if (!is_dir($vendorDir)) {
8   - mkdir($vendorDir);
9   -}
10   -
11   -$deps = array(
12   - array('symfony', 'git://github.com/symfony/symfony.git', isset($_SERVER['SYMFONY_VERSION']) ? $_SERVER['SYMFONY_VERSION'] : 'origin/master'),
13   -);
14   -
15   -foreach ($deps as $dep) {
16   - list($name, $url, $rev) = $dep;
17   -
18   - echo "> Installing/Updating $name\n";
19   -
20   - $installDir = $vendorDir.'/'.$name;
21   - if (!is_dir($installDir)) {
22   - system(sprintf('git clone --quiet %s %s', escapeshellarg($url), escapeshellarg($installDir)));
23   - }
24   -
25   - system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
26   -}

0 comments on commit ad646d0

Please sign in to comment.
Something went wrong with that request. Please try again.