Skip to content

Commit 1d54829

Browse files
authored
Merge pull request #88 from yknx4/chore/rename-to-librecov
chore: rename to librecov
2 parents 7088a8a + c0edb02 commit 1d54829

File tree

159 files changed

+639
-696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+639
-696
lines changed

.github/workflows/ghcr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI to GHCR
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66

77
env:
88
REGISTRY: ghcr.io

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# run: |
2020
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
2121

22-
# Drafts your next Release notes as Pull Requests are merged into "master"
22+
# Drafts your next Release notes as Pull Requests are merged into "main"
2323
- uses: release-drafter/release-drafter@v5
2424
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
2525
# with:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
118118
files: cover/excoveralls.json
119119
fail_ci_if_error: true
120-
- name: OpenCov
120+
- name: LibreCov
121121
continue-on-error: true
122122
env:
123123
SHA: ${{github.sha}}

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ WORKDIR /app
4444

4545
# USER nobody:nobody
4646

47-
COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/opencov ./
47+
COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/librecov ./
4848

4949
ENV HOME=/app
5050

51-
CMD ["bin/opencov", "start"]
51+
CMD ["bin/librecov", "start"]

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# OpenCov
1+
# LibreCov
22

3-
![Build Status](https://github.com/yknx4/opencov/actions/workflows/tests.yml/badge.svg)
4-
[![Coverage Status](https://opencov-reloaded.herokuapp.com/projects/1/badge.svg)](https://opencov-reloaded.herokuapp.com/projects/1)
5-
[![codecov](https://codecov.io/gh/yknx4/opencov/branch/main/graph/badge.svg?token=Q9kaFXoFTn)](https://codecov.io/gh/yknx4/opencov)
3+
![Build Status](https://github.com/yknx4/librecov/actions/workflows/tests.yml/badge.svg)
4+
[![Coverage Status](https://www.librecov.com/projects/1/badge.svg)](https://www.librecov.com/projects/1)
5+
[![codecov](https://codecov.io/gh/yknx4/librecov/branch/main/graph/badge.svg?token=Q9kaFXoFTn)](https://codecov.io/gh/yknx4/librecov)
66

7-
OpenCov is a self-hosted opensource test coverage history viewer.
7+
LibreCov is a self-hosted opensource test coverage history viewer.
88
It is (mostly) compatible with [coveralls](https://coveralls.io/), so most
99
coverage tools will work easily.
1010

1111
## Demo and screenshots
1212

13-
A demo is available at https://opencov-reloaded.herokuapp.com, you can create an account or login with
13+
A demo is available at https://www.librecov.com, you can create an account or login with
1414

15-
* username: user@opencov.com
15+
* username: user@librecov.com
1616
* password: password123
1717

1818
For "security" reasons, the user is not admin.
@@ -44,7 +44,7 @@ NOTE: the demo is on a Heroku free dyno, so it may not always be available and m
4444

4545
First, you will need to at least setup a database
4646
To configure the app, create a `local.exs` file and override the configuration you need.
47-
Check [config/local.sample.exs](https://github.com/yknx4/opencov/blob/master/config/local.sample.exs) to see the available configurations.
47+
Check [config/local.sample.exs](https://github.com/yknx4/librecov/blob/main/config/local.sample.exs) to see the available configurations.
4848

4949
### Using docker
5050

@@ -54,32 +54,32 @@ If you already have a database to use, you can simply start the application usin
5454

5555
Setup database, run migrations and seeds
5656
```
57-
$ docker run --rm -v /absolute/path/to/local.exs:/opencov/config/local.exs yknx4/opencov mix ecto.setup
57+
$ docker run --rm -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov mix ecto.setup
5858
```
5959

6060
Execute Phoenix Server
6161
```
62-
$ docker run -v /absolute/path/to/local.exs:/opencov/config/local.exs yknx4/opencov
62+
$ docker run -v /absolute/path/to/local.exs:/librecov/config/local.exs yknx4/librecov
6363
```
6464

6565
This will start the server on the port you set in `local.exs`.
6666

6767
#### With docker-compose
6868

69-
If you do not have a database, you can start one with `docker` and `docker-compose`. See [docker-compose.yml](https://github.com/yknx4/opencov/blob/master/docker-compose.yml) for a sample `docker-compose.yml` file.
69+
If you do not have a database, you can start one with `docker` and `docker-compose`. See [docker-compose.yml](https://github.com/yknx4/librecov/blob/main/docker-compose.yml) for a sample `docker-compose.yml` file.
7070

7171
Once you have your `docker-compose.yml` and `local.exs` ready, you can run
7272

7373
```
74-
$ docker-compose run opencov mix ecto.setup
74+
$ docker-compose run librecov mix ecto.setup
7575
$ docker-compose up
7676
```
7777

7878
### Manually
7979

8080
```
81-
$ git clone https://github.com/yknx4/opencov.git
82-
$ cd opencov
81+
$ git clone https://github.com/yknx4/librecov.git
82+
$ cd librecov
8383
$ cp /path/to/local.exs config/local.exs # local.exs must be in the `config` directory of the app
8484
8585
$ npm install # (or yarn install)
@@ -88,7 +88,7 @@ $ mix ecto.setup
8888
$ mix phoenix.server
8989
```
9090

91-
This should start OpenCov at port 4000.
91+
This should start LibreCov at port 4000.
9292

9393
If you want to setup the server for production, you will need to run the above commands
9494
with `MIX_ENV=prod` and to run
@@ -104,8 +104,8 @@ before starting the server.
104104
You should also be able to deploy to Heroku by simply git pushing this repository.
105105
You will need to set the following environment variables using `heroku config:set`
106106

107-
* `OPENCOV_PORT`
108-
* `OPENCOV_SCHEME`
107+
* `LIBRECOV_PORT`
108+
* `LIBRECOV_SCHEME`
109109
* `SECRET_KEY_BASE`
110110
* `SMTP_USER`
111111
* `SMTP_PASSWORD`
@@ -129,9 +129,9 @@ You should use it for your first login and the change the email and password.
129129

130130
## Sending test metrics
131131

132-
A few languages are documented in [the wiki](https://github.com/yknx4/opencov/wiki).
132+
A few languages are documented in [the wiki](https://github.com/yknx4/librecov/wiki).
133133
For other languages, coveralls instructions should work out of the box,
134-
you just need to set the URL to your OpenCov server and to explicitly set
134+
you just need to set the URL to your LibreCov server and to explicitly set
135135
the token, even when using Travis.
136136

137137
## Development status
@@ -140,6 +140,6 @@ The application is more or less stable. I have been using it
140140
for a little while now with coverage data from the 4 languages in the Wiki.
141141

142142
The main missing feature is the ability to send coverage status on pull requests.
143-
The implementation is started in the [integrations branch](https://github.com/yknx4/opencov/tree/integrations) but I could not find the time to finish it yet.
143+
The implementation is started in the [integrations branch](https://github.com/yknx4/librecov/tree/integrations) but I could not find the time to finish it yet.
144144

145145
I am open to any other suggestions, and help is very welcome.

config/config.exs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
use Mix.Config
22

3-
config :opencov, Opencov.Endpoint,
3+
config :librecov, Librecov.Endpoint,
44
url: [host: "localhost"],
55
root: Path.dirname(__DIR__),
66
secret_key_base: "tfYGCfFfu10pV8G5gtUJ1do3LDwnu+eWBfL1sNtK8+bEwo6gNzFQZtWkdNQVlt+V",
77
render_errors: [accepts: ~w(html json)],
8-
pubsub_server: Opencov.PubSub
8+
pubsub_server: Librecov.PubSub
99

10-
config :opencov,
10+
config :librecov,
1111
badge_format: "svg",
1212
base_url: "http://localhost:4000",
13-
ecto_repos: [Opencov.Repo]
13+
ecto_repos: [Librecov.Repo]
1414

15-
config :opencov, :github, client_id: System.get_env("OPENCOV_GITHUB_CLIENT_ID")
15+
config :librecov, :github, client_id: System.get_env("LIBRECOV_GITHUB_CLIENT_ID")
1616

1717
config :logger, :console,
1818
format: "$time $metadata[$level] $message\n",
@@ -25,33 +25,33 @@ config :phoenix, :generators,
2525
config :phoenix, :json_library, Jason
2626

2727
config :scrivener_html,
28-
routes_helper: Opencov.Router.Helpers
28+
routes_helper: Librecov.Router.Helpers
2929

30-
config :opencov, PlugBasicAuth, enable: false
30+
config :librecov, PlugBasicAuth, enable: false
3131

32-
config :seedex, repo: Opencov.Repo
32+
config :seedex, repo: Librecov.Repo
3333

34-
config :opencov, :email,
35-
sender: "OpenCov <info@opencov.com>",
34+
config :librecov, :email,
35+
sender: "LibreCov <info@librecov.com>",
3636
smtp: [
3737
relay: "smtp.mailgun.org",
38-
username: System.get_env("SMTP_USER") || "info@opencov.com",
38+
username: System.get_env("SMTP_USER") || "info@librecov.com",
3939
password: System.get_env("SMTP_PASSWORD") || "I wouldn't share this",
4040
port: 587,
4141
ssl: false,
4242
tls: :always,
4343
auth: :always
4444
]
4545

46-
config :opencov, :demo,
47-
enabled: System.get_env("OPENCOV_DEMO") == "true",
48-
email: "user@opencov.com",
46+
config :librecov, :demo,
47+
enabled: System.get_env("LIBRECOV_DEMO") == "true",
48+
email: "user@librecov.com",
4949
password: "password123"
5050

5151
config :joken,
5252
rs256: [
5353
signer_alg: "RS256",
54-
key_pem: System.get_env("OPENCOV_GITHUB_SECRET_KEY")
54+
key_pem: System.get_env("LIBRECOV_GITHUB_SECRET_KEY")
5555
]
5656

5757
import_config "#{Mix.env()}.exs"

config/dev.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Mix.Config
66
# The watchers configuration can be used to run external
77
# watchers to your application. For example, we use it
88
# with brunch.io to recompile .js and .css sources.
9-
config :opencov, Opencov.Endpoint,
9+
config :librecov, Librecov.Endpoint,
1010
http: [port: System.get_env("PORT") || 4000],
1111
debug_errors: true,
1212
code_reloader: true,
@@ -23,7 +23,7 @@ config :opencov, Opencov.Endpoint,
2323
]
2424

2525
# Watch static and templates for browser reloading.
26-
config :opencov, Opencov.Endpoint,
26+
config :librecov, Librecov.Endpoint,
2727
live_reload: [
2828
patterns: [
2929
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
@@ -42,16 +42,16 @@ config :logger, :console, format: "[$level] $message\n"
4242
config :phoenix, :stacktrace_depth, 20
4343

4444
# Configure your database
45-
config :opencov, Opencov.Repo,
45+
config :librecov, Librecov.Repo,
4646
adapter: Ecto.Adapters.Postgres,
4747
username: "postgres",
4848
password: "postgres",
49-
database: "opencov_dev",
49+
database: "librecov_dev",
5050
hostname: "localhost",
5151
pool_size: 10
5252

53-
config :opencov, :email,
54-
sender: "OpenCov <info@opencov.com>",
53+
config :librecov, :email,
54+
sender: "LibreCov <info@librecov.com>",
5555
smtp: [
5656
relay: "127.0.0.1",
5757
port: 1025,
@@ -60,7 +60,7 @@ config :opencov, :email,
6060
auth: :never
6161
]
6262

63-
config Opencov.Plug.Github,
63+
config Librecov.Plug.Github,
6464
secret: "my-secret",
6565
path: "/api/v1/github_webhook",
66-
action: {Opencov.GithubService, :handle}
66+
action: {Librecov.GithubService, :handle}

config/local.sample.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
use Mix.Config
22

3-
config :opencov, Opencov.Endpoint,
3+
config :librecov, Librecov.Endpoint,
44
http: [port: 4000],
5-
url: [scheme: "http", host: "demo.opencov.com", port: 80],
5+
url: [scheme: "http", host: "demo.librecov.com", port: 80],
66
secret_key_base: "my-super-secret-key-base-with-64-characters-so-that-i-dont-get-an-error"
77

8-
config :opencov, Opencov.Repo,
8+
config :librecov, Librecov.Repo,
99
adapter: Ecto.Adapters.Postgres,
10-
url: "postgres://postgres:112233@postgres/opencov_prod",
10+
url: "postgres://postgres:112233@postgres/librecov_prod",
1111
pool_size: 20
1212

13-
config :opencov, :email,
14-
sender: "OpenCov <info@example.com>",
13+
config :librecov, :email,
14+
sender: "LibreCov <info@example.com>",
1515
smtp: [
1616
relay: "smtp.example.com",
1717
username: "info@example.com",

config/prod.exs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
use Mix.Config
22

3-
config :opencov, Opencov.Endpoint,
3+
config :librecov, Librecov.Endpoint,
44
http: [port: {:system, "PORT"}],
55
url: [
6-
scheme: System.get_env("OPENCOV_SCHEME") || "https",
7-
host: System.get_env("OPENCOV_HOST") || "demo.opencov.com",
8-
port: System.get_env("OPENCOV_PORT") || 443
6+
scheme: System.get_env("LIBRECOV_SCHEME") || "https",
7+
host: System.get_env("LIBRECOV_HOST") || "demo.librecov.com",
8+
port: System.get_env("LIBRECOV_PORT") || 443
99
],
1010
secret_key_base: System.get_env("SECRET_KEY_BASE")
1111

12-
config :opencov, Opencov.Repo,
12+
config :librecov, Librecov.Repo,
1313
adapter: Ecto.Adapters.Postgres,
1414
url: System.get_env("DATABASE_URL"),
1515
ssl: true,
1616
pool_size: String.to_integer(System.get_env("POSTGRES_POOL_SIZE") || "10")
1717

18-
config :opencov, :auth,
19-
enable: System.get_env("OPENCOV_AUTH") == "true",
20-
username: System.get_env("OPENCOV_USER"),
21-
password: System.get_env("OPENCOV_PASSWORD"),
22-
realm: System.get_env("OPENCOV_REALM") || "Protected OpenCov"
18+
config :librecov, :auth,
19+
enable: System.get_env("LIBRECOV_AUTH") == "true",
20+
username: System.get_env("LIBRECOV_USER"),
21+
password: System.get_env("LIBRECOV_PASSWORD"),
22+
realm: System.get_env("LIBRECOV_REALM") || "Protected LibreCov"
2323

2424
config :logger, level: :info
2525

26-
config Opencov.Plug.Github,
27-
secret: System.get_env("OPENCOV_GITHUB_WEBOOK_SECRET") || "super-secret",
26+
config Librecov.Plug.Github,
27+
secret: System.get_env("LIBRECOV_GITHUB_WEBOOK_SECRET") || "super-secret",
2828
path: "/api/v1/github_webhook",
29-
action: {Opencov.GithubService, :handle}
29+
action: {Librecov.GithubService, :handle}
3030

3131
if File.exists?(Path.join(__DIR__, "prod.secret.exs")) do
3232
import_config "prod.secret.exs"

0 commit comments

Comments
 (0)