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

Revision 23591, 768 bytes checked in by kimoto, 10 years ago (diff)

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

phpunit.xml.distは環境に依存しないので1ファイルに統一

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