ci_poc_02

0.0.3 • Public • Published

Sample NodeJS Project for GitLab Runner

This is NodeJS project that accompanies my guest blog post on Gitlab.com.

It contains two independent modules to be tested with GitLab Runner.

Running the tests

To run test locally, first start a PostgreSQL database.

To start a db instance with Docker:

docker run \
  --name postgres-db \
  --publish=5432:5432 \
  -e POSTGRES_PASSWORD=123456 \
  -e POSTGRES_USER=testuser \
  -d postgres:9.5.0

Then the db will be available at the following address:

postgres://testuser:123456@localhost:5432/postgres

To start the tests:

DB_USER=testuser \
DB_PASS=123456 \
DB_HOST=localhost:5432  \
node ./specs/start.js

Readme

Keywords

Package Sidebar

Install

npm i ci_poc_02

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

13.8 kB

Total Files

17

Last publish

Collaborators

  • vcamargo