This repository has been archived by the owner on Jun 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from yakworks/shipyak-upgrade
Shipyak upgrade
- Loading branch information
Showing
82 changed files
with
4,002 additions
and
758 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 |
---|---|---|
@@ -1,85 +1,74 @@ | ||
|
||
# circleCI build file | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# docker image with python and mkdocs on it already as well, based on gradle:4.6-alpine | ||
- image: dock9/gradle:4.6 | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
# - image: circleci/postgres:9.4 | ||
|
||
# branches: | ||
# only: | ||
# - master | ||
- image: yakworks/alpine-java:gradle-4.10.3 | ||
# branches: | ||
# only: | ||
# - master | ||
|
||
# working_directory: ~/repo | ||
|
||
environment: | ||
# Customize the JVM maximum heap limit | ||
# JVM_OPTS: -Xmx3200m | ||
MALLOC_ARENA_MAX: 2 | ||
GRADLE_OPTS: "-Xmx3200m -Dorg.gradle.daemon=false" #daemon false doesn't seem to get picked up by fork | ||
GRADLE_OPTS: "-Xmx3048m -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dorg.gradle.daemon=false" #daemon false doesn't seem to get picked up by fork | ||
TERM: dumb | ||
|
||
parallelism: 1 | ||
# resource_class: large | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- run: | ||
name: cat build.gradle files for cache key | ||
command: cat gradle.properties build.gradle plugin/build.gradle examples/app/build.gradle > cache-checksum.tmp | ||
- restore_cache: | ||
keys: | ||
- v3-gradle-{{ checksum "build.gradle" }} | ||
- gradle-{{ checksum "cache-checksum.tmp" }} | ||
|
||
# see https://github.com/palantir/gradle-configuration-resolver-plugin | ||
- run: ./gradlew resolveConfigurations | ||
#- run: ./gradlew test-app:dependencies | ||
# this also kind of helps with the memory issue we keep running into by breaking it up | ||
- run: | ||
name: ✔︎ -- Downloads Dependencies [gradle resolveConfigurations] | ||
command: gradle resolveConfigurations --no-daemon | ||
|
||
# compiling as a seperate step before running check helps with the "finished with non-zero exit value 137" error | ||
- run: | ||
name: ✔︎ -- Compile [gradle classes] | ||
command: gradle classes --no-daemon | ||
|
||
- save_cache: | ||
paths: | ||
- /home/gradle # the https://hub.docker.com/_/gradle/ containter does wierd stuff for cache | ||
- ~/.m2 | ||
- ~/.gradle | ||
key: v3-gradle-{{ checksum "build.gradle" }} | ||
|
||
# - add_ssh_keys: | ||
# fingerprints: | ||
# - "32:15:5c:47:98:e9:3f:09:f9:32:c9:22:00:cc:15:9a" | ||
key: gradle-{{ checksum "cache-checksum.tmp" }} | ||
|
||
#- run: gradle build -s && gradle ciPublish | ||
- run: | ||
name: gradle check tests. skips if only docs were changed | ||
command: | | ||
commitRange=$(echo "$CIRCLE_COMPARE_URL" | rev | cut -d/ -f1 | rev) | ||
if [[ -z "$commitRange" || $(git diff --name-only $commitRange | grep --invert-match -E "(README\.md|mkdocs\.yml|docs/)") ]]; then | ||
./gradlew check | ||
fi | ||
- run: ./gradlew ciPublish | ||
|
||
name: ✔︎ -- Checks Linter and Tests [gradle check] | ||
command: gradle check --no-daemon | ||
- store_artifacts: | ||
path: plugin/build/reports/tests/test/ | ||
destination: test-reports/unit/ | ||
|
||
- store_artifacts: | ||
path: plugin/build/reports/codenarc/ | ||
destination: codenarc/ | ||
|
||
- store_test_results: | ||
path: plugin/build/test-results | ||
|
||
# - run: gradle test-app:check --no-daemon --max-workers 2 | ||
|
||
- store_artifacts: | ||
path: examples/test-app/build/reports/tests | ||
path: examples/app/build/reports/tests | ||
destination: test-reports/integration | ||
|
||
- store_test_results: | ||
path: examples/test-app/build/test-results | ||
path: examples/app/build/test-results | ||
|
||
### Finally do the build and publish. ciPublish will check if this is a PR or on a branch that should not be published | ||
- run: | ||
name: ✔︎ -- Publish Library if needed [gradle ciPublish] | ||
command: gradle ciPublish --no-daemon | ||
|
||
|
||
# - run: ./.circleci/publish.sh |
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 |
---|---|---|
@@ -1,54 +1,51 @@ | ||
################# | ||
# Common Settings | ||
################# | ||
|
||
# This file is the top-most EditorConfig file | ||
root = true | ||
|
||
# All Files | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
max_line_length=100 | ||
|
||
[*.coffee] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.js] | ||
indent_style = space | ||
indent_size = 2 | ||
max_line_length = 120 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[{*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
######################### | ||
# File Extension Settings | ||
######################### | ||
|
||
[*.css] | ||
indent_style = space | ||
indent_size = 2 | ||
# Various XML/json Configuration Files | ||
[*.{xml,json,json5,yml,yaml,ruleset}] | ||
max_line_length = off | ||
|
||
[*.styl] | ||
indent_style = space | ||
indent_size = 2 | ||
# Markdown Files | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.html] | ||
indent_style = space | ||
indent_size = 4 | ||
[*.properties] | ||
trim_trailing_whitespace = false | ||
max_line_length = off | ||
|
||
[*.groovy] | ||
indent_style = space | ||
indent_size = 4 | ||
# Web Files | ||
[*.{htm,html,js,ts,tsx,css,sass,scss,less,svg,vue,coffee,stylintrc}] | ||
indent_size = 2 | ||
|
||
[*.gsp] | ||
# java groovy | ||
[*.{groovy,java,gsp,jsp,kt,kts}] | ||
indent_style = space | ||
indent_size = 4 | ||
continuation_indent_size = 8 | ||
|
||
[*.gradle] | ||
|
||
# python | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Stylint - https://rosspatton.github.io/stylint/ | ||
[{package.json,.stylintrc}] | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_size = 2 |
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
Empty file.
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
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
Oops, something went wrong.