2020-02-08 09:52:42 +00:00
|
|
|
# Contributing to GNSS-SDR
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
<!-- prettier-ignore-start -->
|
2020-02-08 09:52:42 +00:00
|
|
|
[comment]: # (
|
2020-02-08 00:20:02 +00:00
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
2020-02-08 09:52:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
[comment]: # (
|
2020-02-08 00:20:02 +00:00
|
|
|
SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc.es>
|
2020-02-08 09:52:42 +00:00
|
|
|
)
|
2020-02-27 18:50:08 +00:00
|
|
|
<!-- prettier-ignore-end -->
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
:+1::tada: Thanks for taking the time to contribute! :tada::+1:
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
Third-party contributions are essential for keeping GNSS-SDR continuously
|
|
|
|
improving. We simply cannot access the huge number of platforms and myriad
|
|
|
|
configurations for running GNSS-SDR. We want to keep it as easy as possible to
|
|
|
|
contribute changes that get things working in your environment. There are a few
|
|
|
|
guidelines that we need contributors to follow so that we can have a chance of
|
|
|
|
keeping on top of things.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
The following is a set of guidelines for contributing to GNSS-SDR, which is
|
|
|
|
hosted in the [GNSS-SDR Organization](https://github.com/gnss-sdr) on GitHub.
|
|
|
|
These are just guidelines, not rules. Use your best judgment, and feel free to
|
|
|
|
propose changes to this document in a
|
|
|
|
[pull request](#how-to-submit-a-pull-request).
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
## Code of Conduct
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
This project adheres to the Contributor Covenant
|
|
|
|
[code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to
|
2017-04-17 11:43:26 +00:00
|
|
|
uphold this code. Please report unacceptable behavior.
|
|
|
|
|
|
|
|
## Reporting an issue
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
Have you found a bug in the code which is not in the
|
|
|
|
[list of known bugs](https://github.com/gnss-sdr/gnss-sdr/issues)? Do you have a
|
|
|
|
suggestion for improvement? Then by all means please
|
|
|
|
[submit a new issue](https://github.com/gnss-sdr/gnss-sdr/issues/new), and do
|
|
|
|
not hesitate to comment on existing
|
|
|
|
[open issues](https://github.com/gnss-sdr/gnss-sdr/issues).
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
When filling a new issue, please remember to:
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
- **Use a clear and descriptive title** for the issue to identify the problem.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
- **Describe the exact steps which reproduce the problem** in as many details as
|
|
|
|
possible. For example, start by describing your computing platform (Operating
|
|
|
|
System and version, how did you installed GNSS-SDR and its dependencies, what
|
|
|
|
file or front-end are you using as a signal source, etc.). You can also
|
|
|
|
include the configuration file you are using, or a dump of the terminal output
|
|
|
|
you are getting. The more information you provide, the more chances to get
|
|
|
|
useful answers.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
- **Please be patient**. This organization is run on a volunteer basis, so it
|
|
|
|
can take some time to the Developer Team to reach your issue. They will do
|
|
|
|
their best to fix it as soon as possible.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
- If you opened an issue that is now solved, it is a good practice to **close
|
|
|
|
it**.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
The list of [open issues](https://github.com/gnss-sdr/gnss-sdr/issues) can be a
|
|
|
|
good starting point and a source of ideas if you are looking to contribute to
|
|
|
|
the source code.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
## Contributing to the source code
|
|
|
|
|
|
|
|
### Preliminaries
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
1. If you still have not done so,
|
|
|
|
[create your personal account on GitHub](https://github.com/join).
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
2. [Fork GNSS-SDR from GitHub](https://github.com/gnss-sdr/gnss-sdr/fork). This
|
|
|
|
will copy the whole gnss-sdr repository to your personal account.
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
3. Then, go to your favorite working folder in your computer and clone your
|
|
|
|
forked repository by typing (replacing `YOUR_USERNAME` by the actual
|
|
|
|
username of your GitHub account):
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
$ git clone https://github.com/YOUR_USERNAME/gnss-sdr
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
4. Your forked repository https://github.com/YOUR_USERNAME/gnss-sdr will
|
|
|
|
receive the default name of `origin`. You can also add the original gnss-sdr
|
|
|
|
repository, which is usually referred to as `upstream`:
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
$ cd gnss-sdr
|
|
|
|
$ git remote add upstream https://github.com/gnss-sdr/gnss-sdr.git
|
2017-04-17 11:43:26 +00:00
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
To verify the new upstream repository you have specified for your fork, type
|
|
|
|
`git remote -v`. You should see the URL for your fork as `origin`, and the URL
|
|
|
|
for the original repository as `upstream`:
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git remote -v
|
|
|
|
origin https://github.com/YOUR_USERNAME/gnss-sdr.git (fetch)
|
|
|
|
origin https://github.com/YOUR_USERNAME/gnss-sdr.git (push)
|
|
|
|
upstream https://github.com/gnss-sdr/gnss-sdr.git (fetch)
|
|
|
|
upstream https://github.com/gnss-sdr/gnss-sdr.git (push)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Start working on your contribution
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
Checkout the `next` branch of the git repository in order to get synchronized
|
|
|
|
with the latest development code:
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git checkout next
|
|
|
|
$ git pull upstream next
|
|
|
|
```
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
When start working in a new improvement, please **always** branch off from
|
|
|
|
`next`. Open a new branch and start working on it:
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git checkout -b my_feature
|
|
|
|
```
|
|
|
|
|
|
|
|
Now you can do changes, add files, do commits (please take a look at
|
2020-02-27 18:50:08 +00:00
|
|
|
[how to write good commit messages](https://chris.beams.io/posts/git-commit/)!)
|
|
|
|
and push them to your repository:
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git push origin my_feature
|
|
|
|
```
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
If there have been new pushes to the `next` branch of the `upstream` repository
|
|
|
|
since the last time you pulled from it, you might want to put your commits on
|
|
|
|
top of them (this is mandatory for pull requests):
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ git pull --rebase upstream next
|
|
|
|
```
|
|
|
|
|
|
|
|
### How to submit a pull request
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
Before submitting your code, please be sure to
|
|
|
|
[apply clang-format](https://gnss-sdr.org/coding-style/#use-tools-for-automated-code-formatting).
|
|
|
|
|
|
|
|
When the contribution is ready, you can
|
|
|
|
[submit a pull request](https://github.com/gnss-sdr/gnss-sdr/compare/). Head to
|
|
|
|
your GitHub repository, switch to your `my_feature` branch, and click the
|
|
|
|
_**Pull Request**_ button, which will do all the work for you. Code comparison
|
|
|
|
must be always to the `next` branch.
|
|
|
|
|
|
|
|
Once a pull request is sent, the Developer Team can review the set of changes,
|
|
|
|
discuss potential modifications, and even push follow-up commits if necessary.
|
|
|
|
|
|
|
|
Some things that will increase the chance that your pull request is accepted:
|
|
|
|
|
|
|
|
- Avoid platform-dependent code. If your code require external dependencies,
|
|
|
|
they must be available as packages in
|
|
|
|
[Debian OldStable](https://wiki.debian.org/DebianOldStable).
|
|
|
|
- Write tests.
|
|
|
|
- Follow our [coding style guide](https://gnss-sdr.org/coding-style/).
|
|
|
|
Specifically, please make sure that you have applied
|
|
|
|
[clang-format](https://clang.llvm.org/docs/ClangFormat.html) and
|
|
|
|
[clang-tidy](https://clang.llvm.org/extra/clang-tidy/) to your changes before
|
|
|
|
you do your pull request. Please check the
|
|
|
|
[final recommendations](https://gnss-sdr.org/coding-style/#final-recommendations)
|
|
|
|
for guidelines on how to apply those tools.
|
|
|
|
- Write a descriptive and detailed summary. Please consider that reviewing pull
|
|
|
|
requests is hard, so include as much information as possible to make your pull
|
|
|
|
request's intent clear.
|
|
|
|
|
|
|
|
For more details about Git usage, please check out
|
|
|
|
[our tutorial](https://gnss-sdr.org/docs/tutorials/using-git/).
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
## Contributing to the website
|
|
|
|
|
2018-05-09 18:20:57 +00:00
|
|
|
The content of https://gnss-sdr.org lives in a GitHub repository at
|
2017-04-17 11:43:26 +00:00
|
|
|
https://github.com/gnss-sdr/geniuss-place
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
You can fork that repository, reproduce the entire website on your computer
|
|
|
|
using [Jekyll](https://jekyllrb.com/), do changes and submit pull requests, just
|
|
|
|
as explained above. For more details, please check out
|
|
|
|
[how to contribute](https://gnss-sdr.org/contribute/).
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
Last but not the least, you can leave your comments on the website.
|
|
|
|
|
2020-02-27 18:50:08 +00:00
|
|
|
---
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
![GeNiuSS
|
2018-05-09 18:20:57 +00:00
|
|
|
contributes](https://gnss-sdr.org/assets/images/geniuss-contribute.png)
|
2017-04-17 11:43:26 +00:00
|
|
|
|
|
|
|
Thanks for your contribution to GNSS-SDR!
|