Merge pull request #45 from turniere/ticket/TURNIERE-218
Add sonarqube & Code Climate Code analysis
This commit is contained in:
commit
3ed8165501
|
|
@ -9,3 +9,4 @@ tmp/**
|
||||||
.travis-yml
|
.travis-yml
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
README.md
|
README.md
|
||||||
|
sonar-project.properties
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
|
addons:
|
||||||
|
sonarcloud:
|
||||||
|
organization: turniere-dhbw
|
||||||
env:
|
env:
|
||||||
- RAILS_ENV=test
|
- RAILS_ENV=test
|
||||||
script:
|
script:
|
||||||
|
- sonar-scanner
|
||||||
- bundle exec rails db:migrate
|
- bundle exec rails db:migrate
|
||||||
- bundle exec rails spec
|
- bundle exec rails spec
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
||||||
16
README.md
16
README.md
|
|
@ -1,23 +1,23 @@
|
||||||
# turniere-backend
|
# turniere-backend
|
||||||
[](https://travis-ci.org/turniere/turniere-backend) [](https://gitlab.com/turniere/turniere-backend/commits/master) [](https://coveralls.io/gitlab/turniere/turniere-backend?branch=master) [](https://houndci.com) [](https://app.codacy.com/app/Malaber/turniere-backend)
|
[](https://travis-ci.org/turniere/turniere-backend) [](https://gitlab.com/turniere/turniere-backend/commits/master) [](https://coveralls.io/gitlab/turniere/turniere-backend?branch=master) [](https://houndci.com) [](https://app.codacy.com/app/Malaber/turniere-backend) [](https://sonarcloud.io/dashboard?id=turniere_turniere-backend) [](https://codeclimate.com/github/turniere/turniere-backend/maintainability)
|
||||||
|
|
||||||
Ruby on Rails application serving as backend for turnie.re
|
Ruby on Rails application serving as backend for turnie.re
|
||||||
|
|
||||||
# Installation
|
## Installation
|
||||||
```
|
```bash
|
||||||
# install dependencies
|
# install dependencies
|
||||||
$ bundle install
|
$ bundle install
|
||||||
# run migrations
|
# run migrations
|
||||||
$ rails db:migrate
|
$ rails db:migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
# Running
|
## Running
|
||||||
Development (without mail confirmation and separate database):
|
Development (without mail confirmation and separate database):
|
||||||
```
|
```bash
|
||||||
$ RAILS_ENV=development rails server
|
$ RAILS_ENV=development rails server
|
||||||
```
|
```
|
||||||
|
|
||||||
# Generate diagrams
|
## Generate diagrams
|
||||||
```
|
```bash
|
||||||
rails diagram:all_with_engines
|
$ rails diagram:all_with_engines
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<title>Mail from turnie.re</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<style>
|
<style>
|
||||||
/* Email styles need to be inline */
|
/* Email styles need to be inline */
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
sonar.projectKey=turniere_turniere-backend
|
||||||
|
sonar.organization=turniere-dhbw
|
||||||
|
sonar.projectName=turniere-backend
|
||||||
|
sonar.projectVersion=1.0
|
||||||
|
sonar.sources=app
|
||||||
|
sonar.ruby.coverage.reportPaths=coverage/.resultset.json
|
||||||
Loading…
Reference in New Issue