Windshaft-cartodb/run_tests_docker.sh

26 lines
350 B
Bash
Raw Normal View History

#!/bin/bash
/etc/init.d/postgresql start
2019-02-13 01:20:32 +08:00
source /src/nodejs-install.sh
2019-02-13 01:20:32 +08:00
echo "Node.js version: "
node -v
2018-04-27 21:46:57 +08:00
# install dependencies
2019-02-13 01:20:32 +08:00
if [ "$NODEJS_VERSION" = "6" ];
then
npm install -g yarn@0.27.5
2018-11-02 20:57:30 +08:00
echo "yarn version on install:"
yarn --version
yarn
else
2019-02-13 01:20:32 +08:00
echo "npm version:"
npm -v
npm ci
npm ls
fi
2017-10-07 00:24:11 +08:00
2018-04-27 21:46:57 +08:00
# run tests
npm test