source: branches/version-2_13-dev/.travis.yml @ 22855

Revision 22855, 1.1 KB checked in by nanasess, 9 years ago (diff)

#150 (ユニットテスト環境の整備)

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