Move script to docker folder
This commit is contained in:
parent
5f900a3b3c
commit
f21f89f561
22
docker/scripts/test-setup.sh
Normal file
22
docker/scripts/test-setup.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
/etc/init.d/postgresql start
|
||||
|
||||
source /src/nodejs-install.sh
|
||||
|
||||
# Install cartodb-postgresql extension
|
||||
git clone https://github.com/CartoDB/cartodb-postgresql.git
|
||||
cd cartodb-postgresql && make && make install && cd ..
|
||||
|
||||
echo "Node.js version: "
|
||||
node -v
|
||||
|
||||
echo "npm version: "
|
||||
npm -v
|
||||
|
||||
echo "Clean install: "
|
||||
npm ci
|
||||
npm ls
|
||||
|
||||
# run tests
|
||||
npm test
|
@ -79,7 +79,7 @@
|
||||
"test:teardown": "NODE_ENV=test node test teardown",
|
||||
"update-internal-deps": "rm -rf node_modules && npm install",
|
||||
"pretest:ci": "cp config/environments/test.js.example config/environments/test.js",
|
||||
"test:ci": "docker run -e \"NODEJS_VERSION=$NODE_VERSION\" -v `pwd`:/srv $DOCKER_IMAGE bash run_tests_docker.sh && docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v",
|
||||
"test:ci": "docker run -e \"NODEJS_VERSION=$NODE_VERSION\" -v `pwd`:/srv $DOCKER_IMAGE bash docker/scripts/test-setup.sh && docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v",
|
||||
"docker:bash": "docker run -it -v `pwd`:/srv $DOCKER_IMAGE bash"
|
||||
},
|
||||
"engines": {
|
||||
|
Loading…
Reference in New Issue
Block a user