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

Revision 23376, 1.1 KB checked in by kimoto, 10 years ago (diff)

#150 JSHintを追加

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