Create dist directory to specify uploading files.

This commit is contained in:
Syoyo Fujita
2016-03-12 17:16:50 +09:00
parent 31c6633535
commit d688bbd910
2 changed files with 4 additions and 7 deletions

View File

@@ -28,16 +28,10 @@
excludePattern: Optional. Pattern in the form of Ruby regular expression, indicating the path of files to be removed from the list of files specified by the includePattern. excludePattern: Optional. Pattern in the form of Ruby regular expression, indicating the path of files to be removed from the list of files specified by the includePattern.
uploadPattern: Upload path on Bintray. The path can contain symbols in the form of $1, $2,... that are replaced with capturing groups defined in the include pattern. uploadPattern: Upload path on Bintray. The path can contain symbols in the form of $1, $2,... that are replaced with capturing groups defined in the include pattern.
In the example below, the following files are uploaded,
1. All gem files located under build/bin/ (including sub directories),
except for files under a the do-not-deploy directory.
The files will be uploaded to Bintray under the gems folder.
2. All files under build/docs. The files will be uploaded to Bintray under the docs folder.
Note: Regular expressions defined as part of the includePattern property must be wrapped with brackets. */ Note: Regular expressions defined as part of the includePattern property must be wrapped with brackets. */
"files": "files":
[ {"includePattern": "(tiny_obj_loader\.h)", "uploadPattern": "$1"} ], [ {"includePattern": "dist/(.*)", "uploadPattern": "$1"} ],
"publish": true "publish": true
} }

View File

@@ -54,6 +54,9 @@ script:
- if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e - if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e
jni -e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi jni -e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi
- cd .. - cd ..
- rm -rf dist
- mkdir dist
- cp tiny_obj_loader.h dist/
before_deploy: before_deploy:
- echo "Creating description file for bintray." - echo "Creating description file for bintray."