forgejo-app/README.md
Girish Ramakrishnan 4084f590f9 Add tests
2015-11-24 14:00:31 -08:00

36 lines
955 B
Markdown

# Gogs Cloudron App
This repository contains the Cloudron app package source for [Gogs](http://gogs.io/).
## Installation
[![Install](https://cloudron.io/img/button32.png)](https://cloudron.io/button.html?app=io.gogs.cloudronapp)
or using the [Cloudron command line tooling](https://cloudron.io/references/cli.html)
```
cloudron install --appstore-id io.gogs.cloudronapp
```
## Building
The app package can be built using the [Cloudron command line tooling](https://cloudron.io/references/cli.html).
```
cd gogs-app
cloudron build
cloudron install
```
## Testing
The e2e tests are located in the `test/` folder and require [nodejs](http://nodejs.org/). They are creating a fresh build, install the app on your Cloudron, perform tests, backup, restore and test if the repos are still ok. The tests expect port 29418 to be available.
```
cd gogs-app/test
npm install
USERNAME=<cloudron username> PASSWORD=<cloudron password> mocha test.js
```