Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Jan 30, 2019
2 parents 8e9849a + 6e30747 commit 043ea22
Show file tree
Hide file tree
Showing 38 changed files with 1,623 additions and 36 deletions.
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: "\U0001F41E Bug report"
about: Create a report to help us improve
title: ''
labels: 'T: fix'
assignees: ''

---

<!--
Thanks for taking the time to file an issue!
Please select the component label (C: abc) this bug is related to from the right.
-->

**Describe the bug**
<!-- A clear and concise description of what the bug is -->

**To Reproduce**
<!-- Steps to reproduce the behavior -->
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error


**Expected behavior**
<!-- A clear and concise description of what you expected to happen -->


**Screenshots**
<!-- If applicable, add screenshots to help explain your problem -->

| Description 1 | Description 2 | Description 3 |
| :------------: | :------------: | :------------: |
| <screenshot 1> | <screenshot 2> | <screenshot 3> |


**Environment:**
<!-- Please complete the following information -->
- Device: <!-- e.g. Samsung Galaxy S8+ -->
- Android version: <!-- e.g. Android 8.0.0 -->


**Additional context**
<!-- Add any other context about the problem here -->

25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: "\U0001F680 Feature request"
about: Suggest an idea for this project
title: ''
labels: 'T: feature'
assignees: ''

---

<!--
Thanks for taking the time to file an issue!
Please select the component label (C: abc) this feature is related to from the right.
-->

**Description**
<!-- A clear and concise description of the problem or missing capability -->


**Solution**
<!-- If you have a solution in mind, please describe it -->


**Additional context**
<!-- Add any other context about the problem here -->

38 changes: 38 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
**Fixes: #Issue**

<!--
- The name of this PR should follow conventionalcommits.org.
- When not using Unicorn to create PRs, please manually select a type (T: abc) and a component (C: abc) label
from the right.
- Please enter the corresponding issue ID in the placeholder above.
-->


**Checklist**
<!-- Please check if your PR fulfills the following requirements: -->

- [ ] Commit messages follow conventionalcommits.org
- [ ] Tested in production
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)


**Changes**
<!-- Please list your changes: -->

-
-
-


<!-- Add this section if you need it.
**Screenshots**
| Description 1 | Description 2 | Description 3 |
| :------------: | :------------: | :------------: |
| <screenshot 1> | <screenshot 2> | <screenshot 3> |
-->


**Other information**
<!-- Optional -->
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


<!-- Template:
## [Unreleased] - 2019-xx-xx
Optional intro comment.
- feat: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- fix: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- ui: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- perf: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- remove: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- docs: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
- build: Abc ([#](https://github.com/JonasWanke/Unicorn/pull/)), fixes [#](https://github.com/JonasWanke/Unicorn/issues/)
-->

## [Unreleased] - see [milestones] for our roadmap


## 0.0.1 - 2019-01-30

Initial release supporting repository initialization.


[milestones]: https://github.com/JonasWanke/Unicorn/milestones
[Unreleased]: https://github.com/JonasWanke/Unicorn/compare/v0.0.1...dev
25 changes: 0 additions & 25 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -174,28 +174,3 @@ Apache License
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

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.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Unicorn

A tool to create, work on, test and deploy projects.


## License

Copyright 2019 Unicorn

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.
30 changes: 28 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,46 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
application
kotlin("jvm") version "1.3.11"
kotlin("jvm") version "1.3.20"
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

application {
mainClassName = "com.jonaswanke.aluminum.MainKt"
mainClassName = "com.jonaswanke.unicorn.MainKt"
}

dependencies {
compile(kotlin("stdlib-jdk8"))

implementation("org.beryx:text-io:3.3.0")
implementation("com.squareup.okhttp3:okhttp:3.12.1")

implementation("net.swiftzer.semver:semver:1.1.0")
implementation("com.github.ajalt:clikt:1.6.0")
implementation("org.eclipse.jgit:org.eclipse.jgit:5.2.1.201812262042-r")
implementation("org.kohsuke:github-api:1.95")

implementation("com.fasterxml.jackson.core:jackson-databind:2.7.1-1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.7.1-2")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.7.1")

implementation("org.slf4j:slf4j-nop:1.7.25")
}

repositories {
jcenter()
}

sourceSets {
getByName("main") {
resources.srcDirs("res")
}
}

val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = application.mainClassName
Expand Down
28 changes: 28 additions & 0 deletions res/config/github-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- name: duplicate
color: "cfd3d7"
- name: wontfix
color: "cfd3d7"

- name: discussion
color: "d876e3"
- name: question
color: "d876e3"

- name: "PR: wip"
color: "64eac4"

- name: "C: <component>/<subcomponent>"
color: "c2e0c6"

- name: "T: ci"
color: "c5def5"
- name: "T: docs"
color: "c5def5"
- name: "T: feature"
color: "c5def5"
- name: "T: fix"
color: "c5def5"
- name: "T: perf"
color: "c5def5"
- name: "T: refactor"
color: "c5def5"
20 changes: 20 additions & 0 deletions res/templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# %NAME%

%DESCRIPTION%


## License

Copyright %YEAR% %NAME%

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.
59 changes: 59 additions & 0 deletions res/templates/ci/travis-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
language: android
jdk: oraclejdk8
sudo: false

android:
components:
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- extra-google-m2repository
- extra-google-google_play_services

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/daemon
- $HOME/.gradle/native
- $HOME/.gradle/wrapper

before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
install:
- bundle install --without documentation

before_script:
- echo no | android create avd --force -n test -t android-28 --abi armeabi-v7a -c 100M
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew --stacktrace :app:check detektCheck
- bundle exec danger --verbose
- "./gradlew clean assembleDebug testDebugUnitTest connectedDebugAndroidTest"
- ./gradlew clean build

# For apps:
#deploy:
# provider: releases
# api_key: $GITHUB_OAUTH_TOKEN
# file: "$TRAVIS_BUILD_DIR/app/build/outputs/apk/app-debug.apk"
# skip_cleanup: true
# on:
# tags: true
# branch: master

# For libraries:
#deploy:
# provider: script
# script: ./gradlew :clean :<lib>:assembleRelease :<lib>:bintrayUpload
# skip_cleanup: true
# dry_run: false
# on:
# branch: master
2 changes: 2 additions & 0 deletions res/templates/gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
Loading

0 comments on commit 043ea22

Please sign in to comment.