Revision 22842,
715 bytes
checked in by nanasess, 11 years ago
(diff) |
#150 (ユニットテスト環境の整備)
- 汎用性向上
- travis-ci でも正常セットアップできるように修正
|
Line | |
---|
1 | language: php |
---|
2 | |
---|
3 | php: |
---|
4 | - 5.4 |
---|
5 | - 5.3 |
---|
6 | |
---|
7 | env: |
---|
8 | - DB=mysql USER=root DBNAME=myapp_test DBPASS=' ' DBUSER=root |
---|
9 | - DB=pgsql USER=postgres DBNAME=myapp_test DBPASS=password DBUSER=postgres |
---|
10 | |
---|
11 | before_script: |
---|
12 | - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE myapp_test;'; fi" |
---|
13 | - sh -c "if [ '$DB' = 'mysql' ]; then sh ./eccube_install.sh mysql; fi" |
---|
14 | - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database myapp_test;' -U postgres; fi" |
---|
15 | - sh -c "if [ '$DB' = 'pgsql' ]; then sh ./eccube_install.sh pgsql; fi" |
---|
16 | - cp tests/require.php.jenkins tests/require.php |
---|
17 | - cat ./data/config/config.php |
---|
18 | script: |
---|
19 | - phpunit --bootstrap ./data/config/config.php --configuration tests/phpunit.xml.jenkins tests |
---|
Note: See
TracBrowser
for help on using the repository browser.