| Line | |
|---|
| 1 | # for travis-ci |
|---|
| 2 | # see also. https://travis-ci.org |
|---|
| 3 | language: php |
|---|
| 4 | |
|---|
| 5 | php: |
|---|
| 6 | - 5.5 |
|---|
| 7 | - 5.4 |
|---|
| 8 | - 5.3 |
|---|
| 9 | |
|---|
| 10 | env: |
|---|
| 11 | - DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root |
|---|
| 12 | - DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres |
|---|
| 13 | |
|---|
| 14 | before_script: |
|---|
| 15 | - curl -s http://getcomposer.org/installer | php |
|---|
| 16 | - php composer.phar install --dev --no-interaction |
|---|
| 17 | - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE myapp_test;'; fi" |
|---|
| 18 | - sh -c "if [ '$DB' = 'mysql' ]; then sh ./eccube_install.sh mysql; fi" |
|---|
| 19 | - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database myapp_test;' -U postgres; fi" |
|---|
| 20 | - sh -c "if [ '$DB' = 'pgsql' ]; then sh ./eccube_install.sh pgsql; fi" |
|---|
| 21 | - cp tests/require.php.jenkins tests/require.php |
|---|
| 22 | - cat ./data/config/config.php |
|---|
| 23 | |
|---|
| 24 | script: |
|---|
| 25 | - mkdir -p reports/coverage |
|---|
| 26 | - phpunit --log-tap reports/tap.log --log-junit reports/unitreport.xml --coverage-html reports/coverage --coverage-clover reports/coverage/coverage.xml --bootstrap ./data/config/config.php --configuration tests/phpunit.xml.jenkins tests |
|---|
| 27 | |
|---|
| 28 | after_script: |
|---|
| 29 | - php vendor/bin/coveralls -v |
|---|
Note: See
TracBrowser
for help on using the repository browser.