summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:17:47 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-06 10:17:47 +0100
commitc9f46e2e3caa20d597315cd2fa85b0cce15c4c3b (patch)
tree14322825c7bb192bfc1b9c63330f30edfb20125b /.travis.yml
parent6ab04993f880e37e0bd53ebdd28045508f2593b2 (diff)
run integration tests on travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 12 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index a5dfa597b..e5b14ea3d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,22 +47,22 @@ before_script:
- cd owncloud
- ocdev ci $DB
- php -f console.php app:enable news
- - cd apps/news
+ - cd apps/news/js
+ # install test deps
+ - npm install --deps # npm install needs to run before sudo npm install because otherwise it fails because a tmp file exists in the home dir
+ - sudo npm -g install grunt-cli protractor
+ - wget https://scrutinizer-ci.com/ocular.phar
script:
- # php unit tests
- - phpunit --coverage-clover=coverage.clover -c phpunit.xml
- - wget https://scrutinizer-ci.com/ocular.phar
+ # unit tests
+ - grunt php-unit
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- - cd js/
- # install javascript deps (putting it into install section fails often)
- - npm install --deps # npm install needs to run before sudo npm install because otherwise it fails because a tmp file exists in the home dir
- - sudo npm -g install grunt-cli protractor
- # js unit tests
- - grunt ci-unit
+ - grunt js-unit
+ # integration tests
+ - grunt php-integration
# acceptance tests
- #- webdriver-manager update
- #- grunt ci-e2e --verbose
+ - webdriver-manager update
+ #- grunt acceptance --verbose
# debug section to check what went wrong
- sudo apt-get install curl
- curl http://admin:admin@localhost/owncloud/index.php