]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/run-frontend-unittests.sh
4 : ${CEPH_ROOT:=$PWD/../../../../}
5 cd $CEPH_ROOT/src
/pybind
/mgr
/dashboard
/frontend
6 if [ `uname` != "FreeBSD" ]; then
7 .
$CEPH_ROOT/build
/src
/pybind
/mgr
/dashboard
/node-env
/bin
/activate
11 npm run build
-- --prod --progress=false || failed
=true
14 config
='src/unit-test-configuration.ts'
15 if [ -e $config ]; then
16 mv $config ${config}_old
18 cp ${config}.sample
$config
20 npm run
test:ci || failed
=true
23 if [ -e ${config}_old
]; then
24 mv ${config}_old
$config
31 echo -e "\nTry running 'npm run fix' to fix some linting errors. \
32 Some errors might need a manual fix."
37 i18n_lint
=`grep -En "<source> |<source>$| </source>" src/locale/messages.xlf`
38 if [[ ! -z $i18n_lint ]]; then
39 echo -e "The following source translations in 'messages.xlf' need to be \
40 fixed, please check the I18N suggestions in 'HACKING.rst':\n"
45 if [ `uname` != "FreeBSD" ]; then
49 if [ "$failed" = "true" ]; then