CartoDB-SQL-API/test/run_tests_docker.sh

31 lines
494 B
Bash
Raw Normal View History

#!/bin/bash
/etc/init.d/postgresql start
2019-02-13 01:52:57 +08:00
source /src/nodejs-install.sh
2018-11-08 02:21:46 +08:00
# Configure
./configure
2019-02-13 01:52:57 +08:00
echo "Node.js version: "
node -v
2018-04-27 22:38:36 +08:00
2019-02-13 01:52:57 +08:00
echo "npm version:"
npm -v
2019-02-13 01:52:57 +08:00
# install dependencies
if [ "$NODEJS_VERSION" = "6.9.2" ];
then
mv package-lock.json package-lock.json.backup
npm i
npm ls
mv package-lock.json.backup package-lock.json
else
2019-02-13 01:52:57 +08:00
mv npm-shrinkwrap.json npm-shrinkwrap.json.backup
npm ci
npm ls
mv npm-shrinkwrap.json.backup npm-shrinkwrap.json
fi
2018-04-27 23:40:13 +08:00
npm test