Browse Source

Add TravisCI config

Jordi Boggiano 9 năm trước cách đây
mục cha
commit
bd8a56c549

+ 29 - 0
.travis.yml

@@ -0,0 +1,29 @@
+language: php
+
+sudo: false
+
+cache:
+  directories:
+    - $HOME/.composer/cache
+
+services:
+  - redis-server
+
+php:
+  - 5.6
+  - 7.0
+
+matrix:
+  fast_finish: true
+
+before_script:
+    - curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.5.0 SOLR_CONFS="doc/schema.xml" bash
+    - cp app/config/parameters.yml.dist app/config/parameters.yml
+    - composer install
+    - app/console doc:sch:create --env=test -n
+
+script:
+    - phpunit
+
+git:
+  depth: 5

+ 0 - 8
src/Packagist/WebBundle/Tests/Controller/ApiControllerTest.php

@@ -8,14 +8,6 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
 
 
 class ApiControllerTest extends WebTestCase
 class ApiControllerTest extends WebTestCase
 {
 {
-    public function testPackages()
-    {
-        $client = self::createClient();
-
-        $client->request('GET', '/packages.json');
-        $this->assertTrue(count(json_decode($client->getResponse()->getContent())) > 0);
-    }
-
     public function testGithubFailsCorrectly()
     public function testGithubFailsCorrectly()
     {
     {
         $client = self::createClient();
         $client = self::createClient();