#!/usr/bin/env bash # # ownCloud # # Run JS tests # # @author Vincent Petry # @copyright 2014 Vincent Petry # # set -e NPM="$(which npm 2>/dev/null)" PREFIX="build" if test -z "$NPM" then echo 'Node JS >= 0.8 is required to run the JavaScript tests' >&2 exit 1 fi # update/install test packages mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" || exit 3 KARMA="$(which karma 2>/dev/null)" # If not installed globally, try local version if test -z "$KARMA" then KARMA="$PREFIX/node_modules/karma/bin/karma" fi if test -z "$KARMA" then echo 'Karma module executable not found' >&2 exit 2 fi NODE_PATH='build/node_modules' KARMA_TESTSUITE="$1" $KARMA start tests/karma.config.js --single-run form.submit();'> Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/.scrutinizer.yml
blob: 07743ee981367141c7dd553e1d2dc13b527991ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27