Skip to content

Commit

Permalink
Initial commit of Lantern developers documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
uaalto committed Sep 7, 2015
1 parent ce6b7a2 commit a01013a
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 30 deletions.
22 changes: 22 additions & 0 deletions README-dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Lantern Internal Documentation

This is the main README for Lantern internal documentation, which outlines the different parts and links to the READMEs providing in-depth explanations of each particular sub-project.


## Lantern Cloud

**This concerns the following projects:**

* **[lantern_aws](https://github.com/getlantern/lantern_aws)**
* **[lantern-controller](https://github.com/getlantern/lantern-controller)**
* **[config-server](https://github.com/getlantern/config-server)**
* **[autoupdate-server](https://github.com/getlantern/autoupdate-server)**
* **[sonar](https://github.com/getlantern/sonar)**

## Lantern Core

**This concerns the project in this repository: [lantern](https://github.com/getlantern/lantern).**

## Lantern Mobile

**This concerns the project in this repository: [lantern-mobile](https://github.com/getlantern/lantern-mobile).**
66 changes: 36 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

| [English](https://groups.google.com/forum/#!forum/lantern-users-en) | [中文](https://groups.google.com/forum/#!forum/lantern-users-zh) | [فارسی](https://groups.google.com/forum/#!forum/lantern-users-fa) | [français](https://groups.google.com/forum/#!forum/lantern-users-fr)


lantern is a [gost](https://github.com/getlantern/gost) project that
provides repeatable builds and consolidated pull requests for lantern.

## Building Lantern

### Requisites
Expand All @@ -28,32 +24,6 @@ for Windows and Linux, in order to compile Lantern for OSX you'll need an OSX
host, this is a limitation caused by Lantern depending on C code and OSX build
tools for certain features.


### Contributing changes

Go code in Lantern must pass several tests:

* [errcheck](https://github.com/kisielk/errcheck)
* [golint](https://github.com/golang/lint)
* Go vet
* Go test -race

You can find a generic [git-hook](https://github.com/getlantern/lantern/blob/valencia/git-hook)
file, which can be used as a pre-push (or pre-commit) hook to automatically
ensure these tests are passed before committing any code. Only Go packages in
`src/github.com/getlantern` will be tested, and only those that have changes in
them.

Install by copying it into the local `.git/hooks/` directory, with the `pre-push`
file name if you want to run it before pushing. Alternatively, you can name it
`pre-commit` to run it before each commit..

**Important notice**

If you *must* commit without running the hooks, you can run git with the
`--no-verify` flag.


### Building the docker image

In order to build the docker image open a terminal, `cd` into the
Expand Down Expand Up @@ -338,4 +308,40 @@ available
An encrypted version is checked in as `envvars.bash.enc`, which was encrypted
per the instructions [here](http://docs.travis-ci.com/user/encrypting-files/).


## Documentation for developers

### Dev README

Please, go to [README-dev](README-dev.md) for a deeper explanation of the Lantern internals and
cloud services.

### Contributing changes
Lantern is a [gost](https://github.com/getlantern/gost) project that
provides repeatable builds and consolidated pull requests for lantern.

Go code in Lantern must pass several tests:

* [errcheck](https://github.com/kisielk/errcheck)
* [golint](https://github.com/golang/lint)
* Go vet
* Go test -race

You can find a generic [git-hook](https://github.com/getlantern/lantern/blob/valencia/git-hook)
file, which can be used as a pre-push (or pre-commit) hook to automatically
ensure these tests are passed before committing any code. Only Go packages in
`src/github.com/getlantern` will be tested, and only those that have changes in
them.

Install by copying it into the local `.git/hooks/` directory, with the `pre-push`
file name if you want to run it before pushing. Alternatively, you can name it
`pre-commit` to run it before each commit..

**Important notice**

If you *must* commit without running the hooks, you can run git with the
`--no-verify` flag.



[1]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/

0 comments on commit a01013a

Please sign in to comment.