Update/readme
This commit is contained in:
@@ -36,12 +36,12 @@ test:
|
|||||||
- .gradle
|
- .gradle
|
||||||
|
|
||||||
# Code coverage badge
|
# Code coverage badge
|
||||||
# code-coverage:
|
#deploy:
|
||||||
# stage: code-coverage
|
# stage: code-coverage
|
||||||
# script:
|
# script:
|
||||||
# - mvn -B clean verify
|
# - gradle clean check
|
||||||
# after_script:
|
# after_script:
|
||||||
# - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% instructrions covered" }' target/site/jacoco/jacoco.csv
|
# - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% instructrions covered" }' target/site/jacoco/jacoco.csv
|
||||||
# - awk -F"," '{ instructions += $6 + $7; covered += $7 } END { print covered, "/", instructions, " branches covered"; print 100*covered/instructions, "% branches covered" }' target/site/jacoco/jacoco.csv
|
# - awk -F"," '{ instructions += $6 + $7; covered += $7 } END { print covered, "/", instructions, " branches covered"; print 100*covered/instructions, "% branches covered" }' target/site/jacoco/jacoco.csv
|
||||||
# - echo \"$(cat target/site/jacoco/jacoco.csv)% covered\"
|
# - echo \"$(cat target/site/jacoco/jacoco.csv)% covered\"
|
||||||
# coverage: '/(\d+.\d+) % +branches covered/'
|
# coverage: '/(\d+.\d+) % +branches covered/'
|
||||||
30
README.md
30
README.md
@@ -1,35 +1,33 @@
|
|||||||
# Greenify
|
# Greenify
|
||||||
The easiest way to save CO2 and help the environment! Enter your activities and find out your carbon footprint.
|
The easiest way to save CO2 and help the environment! Enter your activities and find out your carbon footprint.
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Badges
|
||||||
|
[](https://gitlab.ewi.tudelft.nl/cse1105/2018-2019/oopp-group-43/template)
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
You can install greenify with gradle, if you already have gradle on your machine, run:
|
You can run greenify with gradle. To start the server, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
gradle install something tralala
|
cd <FILE-LOCATION>/greenify/src/server
|
||||||
```
|
gradle build
|
||||||
|
gradle bootrun
|
||||||
Do you not have gradle on your machine, run:
|
|
||||||
|
|
||||||
```
|
|
||||||
./gradlew install something tralala
|
|
||||||
```
|
```
|
||||||
|
|
||||||
With the following you can start the application
|
With the following you can start the application
|
||||||
|
|
||||||
```
|
```
|
||||||
gradle greenify bootrun
|
cd <FILE-LOCATION>/greenify/src/client
|
||||||
```
|
gradle build
|
||||||
|
gradle bootrun
|
||||||
or without gradle on your device:
|
|
||||||
|
|
||||||
```
|
|
||||||
./gradlew greenify bootrun
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running the tests
|
## Running the tests
|
||||||
The tests cover all non-GUI code:
|
The tests cover all non-GUI code:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
cd <FILE-LOCATION>/greenify
|
||||||
gradle check
|
gradle check
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user