Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (14 sloc) 0.727 kb
ffb9cbc @willdurand Added travis-ci
willdurand authored
1 language: php
2
235476a @willdurand Improved travis-ci settings
willdurand authored
3 php:
4 - 5.4
5
ffb9cbc @willdurand Added travis-ci
willdurand authored
6 env:
235476a @willdurand Improved travis-ci settings
willdurand authored
7 - DB=mysql DB_USER=root
ffb9cbc @willdurand Added travis-ci
willdurand authored
8
9 before_script:
353bb8a @willdurand Fixed travis-ci
willdurand authored
10 # MySQL
def306c @jeremyFreeAgent Fix travis setup
jeremyFreeAgent authored
11 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -u$DB_USER -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS test; DROP SCHEMA IF EXISTS second_hand_books; DROP SCHEMA IF EXISTS contest; DROP SCHEMA IF EXISTS bookstore_schemas; SET FOREIGN_KEY_CHECKS = 1;'; fi"
12 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -u$DB_USER -e 'CREATE DATABASE test; CREATE SCHEMA bookstore_schemas; CREATE SCHEMA contest; CREATE SCHEMA second_hand_books;'; fi"
353bb8a @willdurand Fixed travis-ci
willdurand authored
13
14 # Composer
ffb9cbc @willdurand Added travis-ci
willdurand authored
15 - wget http://getcomposer.org/composer.phar
16 - php composer.phar install
235476a @willdurand Improved travis-ci settings
willdurand authored
17
18 - php bin/propel test:prepare --vendor="$DB" --dsn="$DB:dbname=test" --user="$DB_USER"
ffb9cbc @willdurand Added travis-ci
willdurand authored
19
20 script: phpunit
Something went wrong with that request. Please try again.