Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_u2f.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2017-03-07 15:45:11 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-03-07 15:45:11 +0300
commit3df3aafd753207ce366f0c355c8450ac4283fd36 (patch)
treebafa6e734d9e7ce3c9094a2dd76019c52ab6624e /.travis.yml
parentdbeb23d2d293d9b4f7404b13871e301069fc0d9e (diff)
Add coveralls and push test coverage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 16027e2..8dafa24 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
- - npm install
+ - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install; fi"
- cd ..
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH core
@@ -60,7 +60,6 @@ before_script:
- php -f core/occ app:enable twofactor_u2f
- cd core/apps/twofactor_u2f
-
script:
# Check PHP syntax errors
- find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \;
@@ -69,7 +68,8 @@ script:
#- php ../../occ app:check-code twofactor_u2f
# Run JS tests
- - ./node_modules/karma/bin/karma start --single-run
+ - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then ./node_modules/karma/bin/karma start --single-run; fi"
+ - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi"
# Run PHP tests
- cd tests
@@ -80,7 +80,7 @@ matrix:
- php: 7
env: "DB=sqlite CORE_BRANCH=stable11"
- php: 5.6
- env: "DB=mysql"
+ env: "DB=mysql TEST_JS=TRUE"
- php: 7.0
env: "DB=pgsql"
fast_finish: true