.travis.yml (1148B)
1 language: php 2 dist: trusty 3 os: linux 4 5 php: 6 #- 7.0 7 - 7.1 8 #- nightly 9 10 env: 11 - SYMFONY__TESTDB=mysql DB=mysql 12 - SYMFONY__TESTDB=pgsql DB=pgsql 13 - SYMFONY__TESTDB=sqlite DB=sqlite 14 15 services: 16 - mysql 17 - postgresql 18 19 jobs: 20 allow_failures: 21 - php: nightly 22 23 before_script: 24 - cp app/config/parameters.php.dist app/config/parameters.php 25 - if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS partkeepr_test;" -U postgres; fi 26 - if [[ "$SYMFONY__TESTDB" == "pgsql" ]]; then psql -c "create database partkeepr_test;" -U postgres; fi 27 - if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "DROP database IF EXISTS partkeepr_test;" -uroot; fi 28 - if [[ "$SYMFONY__TESTDB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS partkeepr_test;" -uroot; fi 29 - composer self-update --1 #limit to composer v1 30 - composer install --prefer-source --no-interaction 31 - app/console cache:warmup --env=test 32 - app/console doctrine:schema:create --env=test 33 34 script: 35 - vendor/bin/phpunit -c app/ --coverage-clover build/logs/clover.xml 36 37 after_script: 38 - bash <(curl -s https://codecov.io/bash)