CartoDB-SQL-API/test/run_tests_docker.sh
Daniel G. Aubert 76a7053414
version 6 to 6.9.2 in travis
Co-Authored-By: oleurud <oleurud@pm.me>
2019-02-13 10:48:09 +01:00

31 lines
494 B
Bash

#!/bin/bash
/etc/init.d/postgresql start
source /src/nodejs-install.sh
# Configure
./configure
echo "Node.js version: "
node -v
echo "npm version:"
npm -v
# 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
mv npm-shrinkwrap.json npm-shrinkwrap.json.backup
npm ci
npm ls
mv npm-shrinkwrap.json.backup npm-shrinkwrap.json
fi
npm test