Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
**/*.mustache linguist-vendored=true
* text=auto

## Windows Specific stuff
*.vcproj text eol=crlf
*.bat text eol=crlf
*.cmd text eol=crlf

*.txt text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.xml text eol=lf
gradlew text eol=lf
*.sh text eol=lf
*.properties text eol=lf
*.java text eol=lf
.gitignore text eol=lf
.gradle text eol=lf
.sbt text eol=lf
.scala text eol=lf
.ts text eol=lf
.adoc text eol=lf
.svg text eol=lf

*.mustache text eol=lf linguist-vendored=true
*.hbs text eol=lf linguist-vendored=true
*.handlebars text eol=lf linguist-vendored=true
7 changes: 5 additions & 2 deletions .github/workflows/check-supported-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
include:
- os: windows-latest
flags: --skip-docs
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -79,4 +82,4 @@ jobs:
git config core.fileMode false
mkdir -p modules/openapi-generator-cli/target/
mv artifact/openapi-generator-cli.jar modules/openapi-generator-cli/target/
./bin/utils/ensure-up-to-date
./bin/utils/ensure-up-to-date ${{ matrix.flags }}
7 changes: 7 additions & 0 deletions bin/utils/ensure-up-to-date
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ if [ $status -ne 0 ]; then
exit $status
fi

if [[ "--skip-docs" == "${1}" ]]; then
# We export here rather than modify our iterable so that:
# - the scripts can show they ran and echo meaningfully
# - the scripts can do cleanup (if necessary) when skipped
export SKIP_EXPORT_DOCS=true
fi

# Some special case generators may expect to be run as a stanalone process (e.g. modifying classpath)
# Docs should always be run, regardless of batch or operation.
declare -a always_iterate=(
Expand Down
5 changes: 5 additions & 0 deletions bin/utils/export_docs_generators.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ echo "# START SCRIPT: ${SCRIPT}"

executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"

if [[ "true" == "${SKIP_EXPORT_DOCS}" ]]; then
echo "Skipping doc exports. Note that docs generated by Windows may break paths as they have not yet been normalized to OS-specific paths."
exit 0
fi

for GENERATOR in $(java -jar ${executable} list --short --include all | sed -e 's/,/\'$'\n''/g')
do
./bin/utils/export_generator.sh ${GENERATOR}
Expand Down
3 changes: 0 additions & 3 deletions modules/openapi-generator-gradle-plugin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ hs_err_pid*
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

Expand Down
168 changes: 84 additions & 84 deletions modules/openapi-generator-gradle-plugin/gradlew.bat

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

Loading