2018-11-08 02:03:52 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-27 22:12:47 +08:00
|
|
|
/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: "
|
2018-11-08 02:03:52 +08:00
|
|
|
node -v
|
2018-04-27 22:38:36 +08:00
|
|
|
|
2019-02-13 01:52:57 +08:00
|
|
|
echo "npm version:"
|
|
|
|
npm -v
|
2018-11-08 02:03:52 +08:00
|
|
|
|
2019-02-13 01:52:57 +08:00
|
|
|
# install dependencies
|
2019-02-13 17:48:09 +08:00
|
|
|
if [ "$NODEJS_VERSION" = "6.9.2" ];
|
2018-11-08 02:03:52 +08:00
|
|
|
then
|
2018-11-08 03:24:14 +08:00
|
|
|
mv package-lock.json package-lock.json.backup
|
2018-11-08 02:03:52 +08:00
|
|
|
npm i
|
|
|
|
npm ls
|
2018-11-08 03:24:14 +08:00
|
|
|
mv package-lock.json.backup package-lock.json
|
2018-11-08 02:03:52 +08:00
|
|
|
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
|
2018-11-08 02:03:52 +08:00
|
|
|
fi
|
2018-04-27 22:12:47 +08:00
|
|
|
|
2018-04-27 23:40:13 +08:00
|
|
|
npm test
|