Skip to content

Commit

Permalink
Added Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
urbim committed Nov 7, 2019
1 parent d52851c commit 7faf88c
Show file tree
Hide file tree
Showing 5 changed files with 170 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: java
dist: trusty

jdk:
- openjdk8

env:
global:
- secure: "JLkprrye0JGRJSGd6MhMjwNGySi74ePg/9tvnLwm+fXY0NPS+WEuMd5Hud6YMwMicfqgD1fQFKdGeNxzdmuUJFcwSwEo94Kp6APtwab2+TrX2gEJq0GXZBcC7lIOVFmHKotjjFgG20X7OFcQZHFLA0U+mYjuFZHVheyOXyysAwQwROHGqQdBVdcjUfdEOXS1aMAAMPTeqUDMOVsQlJRFj9oeGQr7+xw0Gq8EayhDgKPxek7/gY5IFTnt2srDV9nXO7U1WkaZ93I6FF8lifwR1bN4hrhTc5OlsfF784mfqvSE4YgQp84fsodqgYpLghxYatlNgDmpRVu470MOTP24YyBWKexbcrkZaj5taDntnYaNHCMItXtiAVR85kOWreXPJug312kBPxoVihF5ZVchol4+cpctN4QVRWDEcblgltSUwsBGdYFb61e806jMnO65amSOsZob111OiHUQC3koYCZ6XELIAhL3G3olY5xQoqwlz/iOIcZVz4LjJQFzy89Uy0c0s4oueZfgODzPYS6gW5y6Vn0bhEC1HU3vjrDaFBIsIQooW0uGVg+alpy+zlZa9Z5jRSBgO6ueiF1H2hB6PqccIyzX1I4IylYM4QUE7gzTcOreuWcEadVayZGgnzU78PMJ2AJiQI+BhqWV9K9ONWyoMU8YTESjlVzTTAHC0nY="
- secure: "Q0w25AM0poCqlW1crkx0ogUAB5k2K1dd0+h3xlWJ7fhAR+f5/P5Y/sEI7Fho48Xd+OuKFcX2DMZCuWoZH/Z2iKvd7FJPi2HfSpEriP4RFaALsDgWfspUJYAo+atRucYh37T7/52Sdatx5cKKoPbf5K7c3mcJTOENMZRIyTjRmBTS127tSPc/vyrDIJ7S1V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ZicAE0n5Psxd69Dh2tukCA3tm0VCWYMj6eEqNNJWvfNd1Vji55AQTjkKQ+M60OyJP58Kmm6a8xfdB/EeBYHNS9JEanXO7JJwgBUvxM="

cache:
directories:
- "$HOME/.m2"

install: mvn clean install -DskipTests=true -V -U
script: mvn test

after_success:
# Deploy to OSSHR
- if [[ $TRAVIS_PULL_REQUEST == "false" && ($TRAVIS_BRANCH == "master" || $TRAVIS_TAG) ]]; then
openssl aes-256-cbc -K $encrypted_f0ab9142a6a6_key -iv $encrypted_f0ab9142a6a6_iv -in gpg.tar.gz.enc -out gpg.tar.gz -d;
tar xvf gpg.tar.gz;
mvn source:jar javadoc:jar deploy -Pdeploy -DskipTests=true --settings ./settings.xml;
fi
116 changes: 116 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Contributing to KumuluzEE JCache

[KumuluzEE JCache](https://github.com/kumuluz/kumuluzee-jcache) and want to get involved?
Thanks! There are plenty of ways you can help!

## Bugs

A bug is a _demonstrable problem_ that is caused by the code in the
repository. Good bug reports are extremely helpful - thank you!

Guidelines for bug reports:

1. **Use the GitHub issue search** — check if the issue has already been
reported.

2. **Check if the issue has been fixed** — try to reproduce it using the
latest `master` branch in the repository.

3. **Isolate the problem** — ideally create a [reduced test
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.

A good bug report shouldn't leave others needing to chase you up for more
information. Please try to be as detailed as possible in your report. What is
your environment? What steps will reproduce the issue? What OS versions
experience the problem? What would you expect to be the outcome? All these
details will help people to fix any potential bugs.

Example:

> Short and descriptive example bug report title
>
> A summary of the issue and the OS environment in which it occurs. If
> suitable, include the steps required to reproduce the bug.
>
> 1. This is the first step
> 2. This is the second step
> 3. Further steps, etc.
>
> `<url>` (a link to the reduced test case)
>
> Any other information you want to share that is relevant to the issue being
> reported. This might include the lines of code that you have identified as
> causing the bug, and potential solutions (and your opinions on their
> merits).
**[File a bug report](https://github.com/kumuluz/kumuluzee-jcache/issues/)**


## Pull requests

Good pull requests - patches, improvements, new features - are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits. If your contribution involves a significant amount of work or substantial
changes to any part of the project, please open an issue to discuss it first.

Make sure to adhere to the coding conventions used throughout a project
(indentation, accurate comments, etc.). Please update any documentation that is
relevant to the change you're making.

Please follow this process; it's the best way to get your work included in the
project:

1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
and configure the remotes:

```bash
# Clones your fork of the repo into the current directory in terminal
git clone https://github.com/<your-username>/kumuluzee-jcache.git
# Navigate to the newly cloned directory
cd kumuluzee-jcache
# Assigns the original repo to a remote called "upstream"
git remote add upstream https://github.com/kumuluz/kumuluzee-jcache.git
```

2. If you cloned a while ago, get the latest changes from upstream:

```bash
git checkout master
git pull upstream master
```

3. Create a new topic branch to contain your feature, change, or fix:

```bash
git checkout -b <topic-branch-name>
```

4. Commit your changes in logical chunks. Please adhere to these [git commit
message
guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your pull request is unlikely be merged into the main project. Use git's
[interactive rebase](https://help.github.com/articles/interactive-rebase)
feature to tidy up your commits before making them public.

5. Locally merge (or rebase) the upstream development branch into your topic branch:

```bash
git pull [--rebase] upstream master
```

6. Push your topic branch up to your fork:

```bash
git push origin <topic-branch-name>
```

10. [Open a Pull Request](https://help.github.com/articles/using-pull-requests) with a
clear title and description.


## Do not…

Please **do not** use the issue tracker for personal support requests.

Please **do not** derail or troll issues. Keep the
discussion on topic and respect the opinions of others.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
KumuluzEE JCache allows usage of JCache annotations and JCache programmatic API in your KumuluzEE applications.
Current implementation used is [Caffeine](https://github.com/ben-manes/caffeine).

For sample project, take a look at `kumuluzee-jcache` module in [https://github.com/kumuluz/kumuluzee-samples](kumuluzee-samples) repository.
For sample project, take a look at `kumuluzee-jcache` module in [kumuluzee-samples](https://github.com/kumuluz/kumuluzee-samples) repository.

This readme is not a comprehensive guide to JCache but is meant to outline the basic tasks you can accomplish with JCache annotations and APIs.

Expand Down Expand Up @@ -325,6 +325,18 @@ public class MyKeyGenerator implements CacheKeyGenerator {
}
```
## Contribute
See the [contributing docs](https://github.com/kumuluz/kumuluzee-jcache/blob/master/CONTRIBUTING.md)
When submitting an issue, please follow the
[guidelines](https://github.com/kumuluz/kumuluzee-jcache/blob/master/CONTRIBUTING.md#bugs).
When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test
alongside the fix.
When submitting a new feature, add tests that cover the feature.
## License
This project is under MIT license.
Expand Down
Binary file modified gpg.tar.gz.enc
Binary file not shown.
15 changes: 15 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
Expand Down Expand Up @@ -28,6 +29,20 @@
<gpg.publicKeyring>~/build/${env.TRAVIS_REPO_SLUG}/gpg.pub</gpg.publicKeyring>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>

<repositories>
<repository>
<id>sonatype-snapshots</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles/>
Expand Down

0 comments on commit 7faf88c

Please sign in to comment.