Browse Source

enabled acceptance tests for basic application

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
b7800eca60
  1. 9
      .travis.yml
  2. 2
      apps/basic/tests/acceptance.suite.yml

9
.travis.yml

@ -12,8 +12,8 @@ services:
- mongodb - mongodb
install: install:
# core framework:
- composer self-update && composer --version - composer self-update && composer --version
# core framework:
# - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist # - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
- composer install --prefer-dist - composer install --prefer-dist
- tests/unit/data/travis/mongodb-setup.sh - tests/unit/data/travis/mongodb-setup.sh
@ -23,6 +23,8 @@ install:
# basic application: # basic application:
- composer install --dev --prefer-dist -d apps/basic - composer install --dev --prefer-dist -d apps/basic
- cd apps/basic && php vendor/bin/codecept build && cd ../.. - cd apps/basic && php vendor/bin/codecept build && cd ../..
- cd apps/basic/web && php -S localhost:8080 &
- cd ../../..
before_script: before_script:
- echo 'elasticsearch version ' && curl http://localhost:9200/ - echo 'elasticsearch version ' && curl http://localhost:9200/
@ -32,8 +34,9 @@ before_script:
- mongo yii2test --eval 'db.addUser("travis", "test");' - mongo yii2test --eval 'db.addUser("travis", "test");'
script: script:
- vendor/bin/phpunit --coverage-text --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor # - vendor/bin/phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
- cd apps/basic && php vendor/bin/codecept run functional && cd ../.. - vendor/bin/phpunit --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
- cd apps/basic && php vendor/bin/codecept run && cd ../..
#after_script: #after_script:
# - php vendor/bin/coveralls # - php vendor/bin/coveralls

2
apps/basic/tests/acceptance.suite.yml

@ -18,7 +18,7 @@ modules:
# - WebDriver # - WebDriver
config: config:
PhpBrowser: PhpBrowser:
url: 'http://localhost' url: 'http://localhost:8080'
# WebDriver: # WebDriver:
# url: 'http://localhost' # url: 'http://localhost'
# browser: firefox # browser: firefox

Loading…
Cancel
Save