Przeglądaj źródła

Create DB before using it

Jordi Boggiano 9 lat temu
rodzic
commit
bdad275402
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -22,6 +22,7 @@ matrix:
 
 
 before_script:
 before_script:
     - cp app/config/parameters.yml.dist app/config/parameters.yml
     - cp app/config/parameters.yml.dist app/config/parameters.yml
+    - 'mysql -uroot -e "CREATE DATABASE packagist_test;"'
     - 'echo "    github.client_id: $GH_CLIENT_ID" >> app/config/parameters.yml'
     - 'echo "    github.client_id: $GH_CLIENT_ID" >> app/config/parameters.yml'
     - 'echo "    github.client_secret: $GH_CLIENT_SECRET" >> app/config/parameters.yml'
     - 'echo "    github.client_secret: $GH_CLIENT_SECRET" >> app/config/parameters.yml'
     - curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.5.0 SOLR_CONFS="doc/schema.xml" bash
     - curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.5.0 SOLR_CONFS="doc/schema.xml" bash