diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-03-07 14:17:13 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-03-07 14:47:42 +0300 |
commit | dee9a7c7ac387edd388225a632e8d6dc3d26dedc (patch) | |
tree | dbb75493a6cb1a80e50d1cbd09463a70e0a8713e /.travis.yml | |
parent | de3190f5aeccca9b08f690d057215ff893e48d15 (diff) |
Install npm packages and run unit tests on travis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 97a96ec..16027e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ before_install: - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "CREATE USER 'nc_autotest'@'localhost' IDENTIFIED BY '';"; fi - if [[ "$DB" == 'mysql' ]]; then mysql -u root -e "GRANT ALL ON nc_autotest.* TO 'nc_autotest'@'localhost';"; fi - - composer self-update + - npm install - cd .. - git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH core @@ -68,6 +68,9 @@ script: # Run server's app code checker #- php ../../occ app:check-code twofactor_u2f + # Run JS tests + - ./node_modules/karma/bin/karma start --single-run + # Run PHP tests - cd tests - phpunit --configuration phpunit.xml |