Skip to content

Commit

Permalink
Travis and readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cltnschlosser committed Aug 18, 2016
1 parent 9078866 commit 6965166
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 54 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
language: java
sudo: false
install: true
jdk: oraclejdk8
script: ./travis.sh
install: ./gradlew build
script:
- ./gradlew test jacocoTestReport
- ./sonar.sh
after_success: ./dropbox.sh
before_cache:
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2
- .gradle
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
- .gradle
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Public API](http://home.kk-sc.de:9000/api/badges/measure?key=com.minecolonies%3Aminecolonies%3Adevelop&blinking=true&metric=public_documented_api_density)](http://home.kk-sc.de:9000/overview?id=com.minecolonies%3Aminecolonies%3Adevelop)
[![Lines of Code](http://home.kk-sc.de:9000/api/badges/measure?key=com.minecolonies%3Aminecolonies%3Adevelop&blinking=true&metric=ncloc)](http://home.kk-sc.de:9000/overview?id=com.minecolonies%3Aminecolonies%3Adevelop)
[![Stories in Ready](https://badge.waffle.io/Minecolonies/minecolonies.png?label=ready&title=Ready)](http://waffle.io/Minecolonies/minecolonies)
[![ReviewNinja](https://app.review.ninja/65616760/badge)](https://app.review.ninja/Minecolonies/minecolonies)

For Users
--
Expand Down Expand Up @@ -64,7 +63,7 @@ This section assumes that you're using the command-line version of Git.

1. Open up your command line.
2. Navigate to a place where you want to download MineColonies source (eg `C:\Github\MineColonies\`) by executing `cd [folder location]`. This location is known as `basefolder` from now on.
3. Execute `git clone https://github.com/MinecoloniesDevs/Minecolonies.git`. This will download MineColonies' source into `basefolder`.
3. Execute `git clone https://github.com/Minecolonies/minecolonies.git`. This will download MineColonies' source into `basefolder`.
4. Right now, you should have a directory that looks something like:

***
Expand Down Expand Up @@ -108,26 +107,23 @@ So you found a bug in our code? Think you can make it more efficient? Want to
MineColonies crashes every time? Have a suggestion? Found a bug? Create an issue now!

1. Make sure your issue hasn't already been answered or fixed. Also think about whether your issue is a valid one before submitting it.
2. Go to [the issues page](http://home.kk-sc.de:4480/secure/CreateIssue!default.jspa).
3. Click `Create Issue`
2. Go to [the issues page](https://github.com/Minecolonies/minecolonies/issues).
3. Click `New Issue`
4. Fill in the form:
* `Title`: Short summary of your issue
* `Description`: A description of what your problem is, with additional info. What have you tried to fix it etc.
* `Assignee`: (Optional) Assign someone to the issue.
* `Kind`: Select the kind of issue
* `Priority`: Select the priority. Think very well if it is a major issue before you select that!
* `Attachments`: Add the latest.log from %appdata%/.minecraft/logs

5. Click `Create Issue`, and wait for feedback!
5. Click `Submit New Issue`, and wait for feedback!

NOTE: A video explaining how to is [here](http://youtu.be/2SscjHmLvss)
~~NOTE: A video explaining how to is [here](http://youtu.be/2SscjHmLvss).~~

For Developers
--

Do not push to the main branch anymore!
Only PR's (pull requests) are acceptable for this branch.
PR's (pull requests) are required to get code onto the develop and master branches.

To do this, the easiest way is to download [sourcetree](http://www.sourcetreeapp.com/) or [gitkraken](https://www.gitkraken.com/). Install it, and add a repository (either clone, or select working directory)
Then, click on branch, and create a new one. You can push to your own branch! Make sure your branch is selected, before you push! [Example](http://gyazo.com/4b453a55a8baf59f573bb1c4636a5ca2) So it should be big black. Once you are satisfied, go to [github](https://github.com/MinecoloniesDevs/Minecolonies/compare), and create a pull request.
Then, click on branch, and create a new one. You can push to your own branch! Make sure your branch is selected, before you push! [Example](http://gyazo.com/4b453a55a8baf59f573bb1c4636a5ca2) So it should be big black. Once you are satisfied, go to [github](https://github.com/Minecolonies/minecolonies/compare), and create a pull request.

2 changes: 2 additions & 0 deletions dropbox.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

rm -f ~/.dropbox_uploader
echo "OAUTH_ACCESS_TOKEN=$OAUTH_ACCESS_TOKEN" > ~/.dropbox_uploader

Expand Down
26 changes: 26 additions & 0 deletions sonar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
./gradlew sonarqube --stacktrace \
-Dsonar.analysis.mode=issues \
-Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
-Dsonar.github.repository=$TRAVIS_REPO_SLUG \
-Dsonar.github.oauth=$GITHUB_TOKEN \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.password=$SONAR_PASS \
-Dsonar.sources=src/main/java \
-Dsonar.java.binaries=build/classes/main
fi

if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
./gradlew sonarqube --stacktrace \
-Dsonar.github.repository=$TRAVIS_REPO_SLUG \
-Dsonar.github.oauth=$GITHUB_TOKEN \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.password=$SONAR_PASS \
-Dsonar.sources=src/main/java \
-Dsonar.branch=$TRAVIS_BRANCH \
-Dsonar.java.binaries=build/classes/main
fi
36 changes: 0 additions & 36 deletions travis.sh

This file was deleted.

0 comments on commit 6965166

Please sign in to comment.