-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 66b6eb7
Showing
51 changed files
with
3,840 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Do the Gradle build | ||
./gradlew build || exit 1 | ||
|
||
if [ "$TRAVIS_REPO_SLUG" == "diffplug/goomph" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then | ||
# Publish the artifacts | ||
./gradlew publish || exit 1 | ||
# Push the javadoc | ||
./.ci/push-javadoc.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
echo "Pushing javadoc to gh-pages..." | ||
|
||
# save the version | ||
VERSION=$(./gradlew -q printVersion) | ||
|
||
# copy javadoc from the build to ~/javadoc-temp | ||
cp -R build/docs/javadoc $HOME/javadoc-temp | ||
|
||
# clone a new copy durian to gh-pages | ||
cd $HOME | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "travis-ci" | ||
rm -rf $HOME/gh-pages | ||
git clone --quiet --branch=gh-pages https://${gh_token}@github.com/diffplug/goomph gh-pages > /dev/null | ||
|
||
# copy the javadoc into the build | ||
cd gh-pages | ||
if [[ "$VERSION" != *SNAPSHOT* ]]; then | ||
git rm -rf javadoc/${VERSION} | ||
cp -Rf $HOME/javadoc-temp/ ./javadoc/${VERSION}/ | ||
else | ||
git rm -rf javadoc/snapshot | ||
cp -Rf $HOME/javadoc-temp/ ./javadoc/snapshot/ | ||
fi | ||
|
||
# add all of the stuff and commit it | ||
git add -f -A | ||
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" | ||
if ! git push -fq origin gh-pages &> /dev/null; then | ||
echo "Error pushing javadoc to origin. Bad gh_token? GitHub down?" | ||
exit 1 | ||
else | ||
echo "Pushed javadoc to gh-pages." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# mac stuff | ||
*.DS_Store | ||
|
||
# GFM preview | ||
.*.md.html | ||
|
||
### Gradle ### | ||
.gradle | ||
build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
|
||
### Eclipse ### | ||
*.pydevproject | ||
.metadata | ||
.gradle | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.settings/ | ||
.loadpath | ||
|
||
# Eclipse Core | ||
.project | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
# Java annotation processor (APT) | ||
.factorypath | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
# sbteclipse plugin | ||
.target | ||
|
||
# TeXlipse plugin | ||
.texlipse | ||
|
||
|
||
### Intellij ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio | ||
|
||
*.iml | ||
|
||
## Directory-based project format: | ||
.idea/ | ||
# if you remove the above rule, at least ignore the following: | ||
|
||
# User-specific stuff: | ||
# .idea/workspace.xml | ||
# .idea/tasks.xml | ||
# .idea/dictionaries | ||
|
||
# Sensitive or high-churn files: | ||
# .idea/dataSources.ids | ||
# .idea/dataSources.xml | ||
# .idea/sqlDataSources.xml | ||
# .idea/dynamic.xml | ||
# .idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
# .idea/gradle.xml | ||
# .idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
# .idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.ipr | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
|
||
|
||
### NetBeans ### | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
nbactions.xml | ||
nb-configuration.xml | ||
.nb-gradle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
script: "./.ci/ci.sh" | ||
env: | ||
global: | ||
- secure: LSJ2yJUp8QuX7VRnapO3Ym6kfYxVhbFG1U2baWxPd0ncYBBleGEQt875kHiMgrFsrWRG1VNCphplae45MZ8ufLiKha9tN2vusdnYxEaYuj10OxA2ko0m3H4/HhQ2A53+fcAAWfOY6t6ngiP4jzOt0jPZHaLvvyiYOppHd8Fi5ek= | ||
- secure: CH8VfAXlNttLL/w8rZkdu2idvVkgZUBspYo+u5+NQLXw6JE9F4XPKWPI6caz7JMO81eWiMqvdKCeBXtVmHVpCWvZuGy0RXVZpqtgs5Yij4EKyVinfGjLDAk8+E0sR5lnINevzhsu9uV84a9K+0UN3knmUEMUTtorh1A68TX+Yi0= | ||
- secure: PfAJFIy14WBRlBR/+t83EHKxiyAWc13IYcNnjP0XD2XiZJmSq6ITqzDu3iwJTtRFEqjwQYhF8HYRQDBvnF5KRHLjK5IgbcBpj4mvppd2/vr2YSQ/LPffCoMOELGD5p/3IFLi9p0TXqXslj61Cq3dIvLnurlZW7qf4IuD85WJmy4= | ||
- secure: mqD94dv+lAjCj905Pmd2OYdGIqnUt9NiWJFG9Kjyoi7a965CNS2SvCk9uIE9+r14fe24vrHUpdyi8unpHYmuRBvkdoo4lB16+cfFziV8TnUle5f5xBGZSya+pnLQByXUEHgXnR2u+n5zuPrSRmsCbqZbFKooTFdcqsIE3K4veJQ= | ||
- secure: gGou1i+kg53gkJIHm761zmyhm4aoCV5IPeU77SCMl2KmdcnmF0XpsMtJUU16BQd3Lc6JwtnYTw79gA24377Z87Ylk4OLxN6pkkANzSJBGjdk3LNupfpkq18tNZZMW5Gs8gEZ36c86wNoqklN78rJseIp2v36cnnWStTAHw7UCZI= | ||
- secure: dTXO3Ei51PQ4id4X96poj1g+DkGnzyUAtVX/5AbTYr4/r3TrhX3GSHNsylB3Dq2/xDugMfrSUhgZc15ni3x1NF186G7C0QftjsqMeDLgSK+uOLkFVybqrl2YfWsPkhVIyuY1Fw5xkGs0HI8GMA/ReO0JRJfwAnrjokJa8Nyvrjw= | ||
- secure: pcESvJjUFWhZfbxCUojG7XIyA0chp3rIbWiKJtNjcE0QnjjtV9SRXH/VfpyaF1oXxAO/ohdr9tcNA4EmlkpNV10OAbDeqQGxfl4gt1UndNj6g1RuR6ISvtHoacSr9hyMu2UQFjTkl5BgPnGhLE5F5vBVhHYdaEktvw2dlgTxJK0= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Goomph releases | ||
|
||
### Version 2.0.0 - TBD ([javadoc](http://diffplug.github.io/freshmark/javadoc/snapshot/)) | ||
|
||
|
||
|
||
### Version 1.0.0 - October 1st 2015 ([javadoc](http://diffplug.github.io/goomph/javadoc/1.0.0/), [jcenter](https://bintray.com/diffplug/opensource/goomph/1.0.0/view)) | ||
|
||
* Throw it over the wall! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Contributing to Goomph | ||
|
||
Pull requests are welcome, preferably against `master`. | ||
|
||
Every successful Travis CI build on branch `master` is automatically published to [`https://oss.sonatype.org/content/repositories/snapshots`](https://oss.sonatype.org/content/repositories/snapshots/com/diffplug/), and its javadoc are published [here](http://diffplug.github.io/goomph/javadoc/snapshot/). | ||
|
||
## Build instructions | ||
|
||
It's a bog-standard gradle build. | ||
|
||
`gradlew eclipse` | ||
* creates an Eclipse project file for you. | ||
|
||
`gradlew build` | ||
* builds the jar | ||
* runs FindBugs | ||
* checks the formatting | ||
* runs the tests | ||
|
||
If you're getting style warnings, `gradlew spotlessApply` will apply anything necessary to fix formatting. For more info on the formatter, check out [spotless](https://github.com/diffplug/spotless). | ||
|
||
## License | ||
|
||
By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/diffplug/durian/blob/master/LICENSE | ||
|
||
All files are released with the Apache 2.0 license as such: | ||
|
||
``` | ||
Copyright 2015 DiffPlug | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
``` |
Oops, something went wrong.