This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation and scripts to build / hack on firegrid
- Loading branch information
Showing
5 changed files
with
114 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Contributing guidelines | ||
|
||
Fork the repository and make changes on your fork in a feature branch: | ||
|
||
If it's a bug fix branch, name it `XXXX-something` where `XXXX` is the number of the issue. | ||
If it's a feature branch, create an enhancement issue to announce your intentions, and name it `XXXX-something` where | ||
`XXXX` is the number of the issue. | ||
|
||
Submit tests for your changes. Take a look at existing tests for inspiration. | ||
Run the full test suite on your branch before submitting a pull request. | ||
|
||
Write clean code. Universally formatted code promotes ease of writing, reading, and maintenance. | ||
|
||
Pull requests descriptions should be as clear as possible and include a reference to all the issues that they address. | ||
|
||
Code review comments may be added to your pull request. Discuss, then make the suggested modifications and push additional | ||
commits to your feature branch. Be sure to post a comment after pushing. The new commits will show up in the pull request | ||
automatically, but the reviewers will not be notified unless you comment. | ||
|
||
Pull requests must be cleanly rebased on top of master without multiple branches mixed into the PR. | ||
|
||
Commits that fix or close an issue should include a reference like `Closes #XXXX` or Fixes `#XXXX`, which will automatically close the issue | ||
when merged. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,64 @@ | ||
## Firegrid | ||
[![Build Status](https://travis-ci.org/foliea/firegrid.svg?branch=master)](https://travis-ci.org/foliea/firegrid) | ||
|
||
Click anywhere with only a few keystrokes! | ||
|
||
## Installation | ||
|
||
### On Archlinux | ||
|
||
Firegrid is available in the AUR: [firegrid](https://aur.archlinux.org/packages/firegrid) | ||
|
||
You can install it using `makepkg` like this: | ||
|
||
$ git clone https://aur.archlinux.org/firegrid.git | ||
$ cd firegrid | ||
$ makepkg -si | ||
$ cd .. | ||
$ rm -r firegrid | ||
|
||
Or you could use an AUR helper: | ||
|
||
$ yaourt -S firegrid | ||
|
||
### Build from sources | ||
|
||
To build firegrid from sources, you only need [Docker](https://www.docker.com). | ||
|
||
Run the following command: | ||
|
||
$ sh scripts/build.sh | ||
|
||
You will then find the firegrid binary in the `bin` directory: | ||
|
||
$ ./bin/firegrid | ||
|
||
## Development | ||
|
||
To hack on firegrid, you can run a [Docker](https://www.docker.com) container | ||
with every dependency required to build, run the application and launch the test | ||
suite: | ||
|
||
$ sh scripts/hack.sh | ||
|
||
> N.b: If you get the following error: `QXcbConnection: Could not connect to display`, | ||
you need to install [xhost](https://www.x.org/archive/X11R6.8.1/doc/xhost.1.html) and run | ||
the following command: `xhost +` before running the script. | ||
|
||
Inside the container you can: | ||
* Build the binary with: `make` | ||
* Compile and run the application with: `make dev` | ||
* Launch the test suite with: `make test` | ||
|
||
## Contributing | ||
|
||
Before sending a pull request, please checkout the contribution | ||
[guidelines](/CONTRIBUTING.md). | ||
|
||
## Authors | ||
* [Adrien Folie](https://github.com/foliea) - Creator / Maintainer. | ||
|
||
## Licensing | ||
|
||
Firegrid is licensed under the MIT License. See [LICENSE](LICENSE) for full | ||
license text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
image_name="firegrid-build" | ||
|
||
docker build -t $image_name . | ||
docker run -ti $image_name /bin/sh -c "make" | ||
|
||
container_id=$(docker ps -l -q) | ||
|
||
docker cp $container_id:/firegrid/bin/firegrid ./bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
image_name="firegrid-hack" | ||
|
||
docker build -t $image_name . | ||
|
||
docker run -ti \ | ||
-v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
-v $PWD:/firegrid \ | ||
-e DISPLAY=unix$DISPLAY \ | ||
$image_name |