Skip to content

Commit

Permalink
[WIP] Release/v1.0.0 (#13)
Browse files Browse the repository at this point in the history
Release/v1.0.0
  • Loading branch information
tcw165 authored Oct 28, 2018
1 parent 8048fdd commit 36cc364
Show file tree
Hide file tree
Showing 76 changed files with 3,134 additions and 225 deletions.
17 changes: 12 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
- run:
name: Run unit test
command: |
./gradlew styled-recycler-view:testDebugUnitTest -PtestProguard=true --stacktrace
./gradlew testDebugUnitTest -PtestProguard=true --stacktrace
- store_test_results:
path: styled-recycler-view/build/test-results
- store_test_results:
path: styled-switch-view/build/test-results

- save_cache:
key: project-{{ checksum "build.gradle" }}-{{ checksum "dependencies.gradle" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
Expand All @@ -61,26 +63,31 @@ jobs:
- run:
name: Run unit test
command: |
./gradlew styled-recycler-view:testReleaseUnitTest --stacktrace
./gradlew testReleaseUnitTest --stacktrace
- run:
name: Build artifact
command: |
./gradlew styled-recycler-view:build --stacktrace
./gradlew build --stacktrace
- run:
name: Publish to Github
command: |
./gradlew styled-recycler-view:githubRelease --stacktrace
./gradlew styled-recycler-view:githubRelease --stacktrace 2> /dev/null
./gradlew styled-switch-view:githubRelease --stacktrace 2> /dev/null
- run:
name: Publish to JCenter
command: |
./gradlew styled-recycler-view:bintrayUpload --stacktrace
./gradlew styled-recycler-view:bintrayUpload --stacktrace 2> /dev/null
./gradlew styled-switch-view:bintrayUpload --stacktrace 2> /dev/null
- store_artifacts:
path: styled-recycler-view/build/outputs/aar/
destination: aar
- store_artifacts:
path: styled-switch-view/build/outputs/aar/
destination: aar

workflows:
version: 2
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ Therefore we create a custom *RecyclerView* which derives from support library *
[Check out the document for the integration and usage](styled-recycler-view/README.md).


# StyledSwitchView

<p align="center">
<img src="docs/sw-capsule-demo.gif" width="240">
</p>

A capsule styled switch view with customized label, border, background and thumbnail.

[Check out the document for the integration and usage](styled-switch-view/README.md).
4 changes: 2 additions & 2 deletions styled-recycler-view/README.release.md → README.release.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Automation with CI
---

### Steps
- Update the artifact version (`*_artifact_version`) in [gradle.properties](../gradle.properties) and commit the change to any branches other than `master`.
- Update the artifact version (`*_artifact_version`) in [gradle.properties](gradle.properties) and commit the change to any branches other than `master`.
- Create a PR from your working branch to `master`.
- Review the PR carefully.
- Once the PR is merged to `master`, the CI server will deploy a release to JCenter and tag a release on Github.
Expand All @@ -19,7 +19,7 @@ Manually
- Deploy to Bintray and JCenter by running the following command:

```
./gradlew clean build styled-recycler-view:bintrayUpload
./gradlew clean build ${module}:bintrayUpload
```

- Tag and submit the tag to GitHub, for example:
Expand Down
Loading

0 comments on commit 36cc364

Please sign in to comment.