Skip to content

Commit

Permalink
[release] 1.4.0
Browse files Browse the repository at this point in the history
- Supports postgres instead of mongo
  • Loading branch information
gabrielcsapo committed Apr 10, 2021
1 parent 60d6218 commit 63a83c7
Show file tree
Hide file tree
Showing 15 changed files with 161 additions and 150 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.4.0 (05/14/2019)

- Supports postgres instead of mongo

# 1.3.2 (05/14/2019)

- fix links to not have $2E but %2E
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ It's a lcov server! It stores lcov reports and categorizes them based on their o

# Prerequisites

- `mongodb` installed
- `postgres` installed
- `nodejs` installed

# Install
Expand All @@ -51,7 +51,7 @@ Commands:
Options:
db, -d, --db [db] Set the db connection (default: mongodb://localhost:32768/lcov-server)
db, -d, --db [db] Set the db connection (default: postgres://localhost:5432/lcov-server)
parser, -p, --parser <parser> Set the parser value [lcov, cobertura, golang, jacoco], defaults to lcov (default: lcov)
basePath, -bp, --basePath <path> The path that defines the base directory where the files that were covered will be located
```
Expand All @@ -65,5 +65,5 @@ tap test --coverage-report=text-lcov | lcov-server --upload http://...
## Server

```
lcov-server --serve --db mongodb://localhost:32768/lcov-server
lcov-server --serve --db postgres://localhost:5432/lcov-server
```
5 changes: 3 additions & 2 deletions bin/lcov-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ args.forEach((a, i) => {
Options:
db, -d, --db [db] Set the db connection (default: mongodb://localhost:32768/lcov-server)
db, -d, --db [db] Set the db connection (default: postgres://localhost:5432/lcov-server)
parser, -p, --parser <parser> Set the parser value [lcov, cobertura, golang, jacoco], defaults to lcov (default: lcov)
basePath, -bp, --basePath <path> The path that defines the base directory where the files that were covered will be located
`);
Expand Down Expand Up @@ -78,7 +78,7 @@ args.forEach((a, i) => {
const { parser, upload, serve, db, basePath } = program;

if(serve) {
process.env.MONGO_URL = process.env.MONGO_URL || db || 'mongodb://localhost:32768/lcov-server';
process.env.DB_CONNECTION_STRING = process.env.DB_CONNECTION_STRING || db || 'postgres://localhost:5432/lcov-server';

require('../index');
} else {
Expand All @@ -98,6 +98,7 @@ if(serve) {
console.log('\n coverage sent successfully 💚 \n'); // eslint-disable-line
}
} catch(ex) {
console.log(ex);
console.error(`\n coverage could not be parsed with reason:\n ${ex.toString()}\n`); // eslint-disable-line
}
}));
Expand Down
2 changes: 1 addition & 1 deletion dist/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vendor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 63a83c7

Please sign in to comment.