Skip to content

Commit f2db18d

Browse files
committed
Add bintray deploy in travis build.
1 parent bc42bc4 commit f2db18d

3 files changed

Lines changed: 67 additions & 11 deletions

File tree

‎.bintray.in‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
/* Bintray package information.
3+
In case the package already exists on Bintray, only the name, repo and subject
4+
fields are mandatory. */
5+
6+
"package": {
7+
"name": "releases", // Bintray package name
8+
"repo": "tinyobjloader", // Bintray repository name
9+
"subject": "syoyo" // Bintray subject (user or organization)
10+
},
11+
12+
/* Package version information.
13+
In case the version already exists on Bintray, only the name fields is mandatory. */
14+
15+
"version": {
16+
"name": "@VERSION@",
17+
"desc": "@VERSION@",
18+
"released": "@DATE@",
19+
"vcs_tag": "@VERSION@",
20+
"gpgSign": false
21+
},
22+
23+
/* Configure the files you would like to upload to Bintray and their upload path.
24+
You can define one or more groups of patterns.
25+
Each group contains three patterns:
26+
27+
includePattern: Pattern in the form of Ruby regular expression, indicating the path of files to be uploaded to Bintray.
28+
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.
29+
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.
30+
31+
In the example below, the following files are uploaded,
32+
1. All gem files located under build/bin/ (including sub directories),
33+
except for files under a the do-not-deploy directory.
34+
The files will be uploaded to Bintray under the gems folder.
35+
2. All files under build/docs. The files will be uploaded to Bintray under the docs folder.
36+
37+
Note: Regular expressions defined as part of the includePattern property must be wrapped with brackets. */
38+
39+
"files":
40+
[ "tiny_obj_loader.h" ],
41+
"publish": true
42+
}
43+

‎.travis.yml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,17 @@ script:
5151
..
5252
- ninja
5353
- ./test_loader ../cornell_box.obj
54-
- if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e jni
55-
-e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi
54+
- if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e
55+
jni -e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi
5656
- cd ..
57+
58+
before_deploy:
59+
- echo "Creating description file for bintray."
60+
- ./tools/travis_postbuild.sh
61+
5762
deploy:
58-
provider: releases
59-
api_key:
60-
secure: AsXameK4GJn6h6wMmDrKTr7q/o9EI7hX7zWg1W6VaFBQKfkBvOmjJolWimjl6HMoRZ1NpMmK5GDm3zBlTUeABtgVBIyNWgE9vWS39ff6D5iQKcgScFsJkyILt0GikBqbN2pLGQ2t/M1Qh6n1sEIfzqekiCcF5Qvy5yYlYvHtaRGV02QeYAej/xx15/9SMuKTncHhjf63ClYPu8ODid7QUegJUvlQUeXoPsBDbaXMH2uDWoBWF7etX7G2Iob4NE8GX+ZP6dj+Ogi7p4HXThK650mzLL/pUl584EjjY/vePqx0cFhtpiRwvrW8SNPI1aJ1Phwa1enLRUgfS3bnkwQAMw/SCXSK2lnCvkUAXyTgpG03HWrZURj4vhEPXc7qHooO+dsfmi+JanYLaSDyrGpgQznLGjCMnVATimry0KxSufUY8Wt72Wh+nf7N0IgTUCjl32sWnQd/MRZPkxFuaf1h7r9RoH9KZY0yIOV09gABEFCGrOIZA2FcyhC2G26Bc4zyNrfMFpZ2DI76qdcWNdJGkRkpxtH9sGU8JgZu6Em2f1e6+SLgkBsPxbhRk5PwdhA9AXE2p9PmQqhO3jJKusGBZSoHAF7TlwagRY2J01yJxF7ge6zG9U8QuBqs1bB1zdnE34fHWOgs4st3inC+oBDOhvnEg1Nm/qeYVWMBzpwclSg=
61-
file: tiny_obj_loader.h
62-
all_branches: true
63-
on:
64-
repo: syoyo/tinyobjloader
65-
tags: true
66-
skip_cleanup: true
63+
provider: bintray
64+
file: ".bintray.json"
65+
user: "syoyo"
66+
key:
67+
secure: W4F1VZcDcVOMe8Ymvo0bHery/JSmVhadl1NgAnGus6o7zVw7ChElKA1ho/NtqUbtoW8o1qUKMJdLQeh786jolocZJEJlns9JZ5FCet6H2b3kITfUa4GR5T11V/ZYwL3SajW8vZ1xu5UrpP5HHgFMYtxb1MFrNLDI60sh0RnyV/qFFBnCJGZPagF/M1mzbJeDml5xK5lShH0r8QpH+7MeQ1J8ungEyJ7UCyr1ao8gY9eq1/05IpHR9vri/d48EXQWHbqtI8EwCc7064oCYQGyYcLsD4yPEokwrdelkCvDquSpJLmbJENfZCc4vZGXsykjnQ8+gltJomBAivQFB9vc06ETEJssMzitbrfEZUrqFwZj/HZM7CYGXfGQWltL828SppCjsuWrgQ/VYXM5UgRpmhlxbqnuyxnYvKZ9EDW4+EnMkOmIl7WSDovp8E/4CZ0ghs+YyFS4SrgeqFCXS8bvxrkDUUPSipHuGBOt02fRnccKzU+3zU6Q5fghyLczz4ZtnOdk+Niz/njyF0SZfPYTUgb3GzAJ8Su6kvWJCAGdedON3n1F/TtybCE2dIdATxaO2uFQbwYjSOCiq209oCJ7MrsQZibRsa5a9YXyjlLkPxwOeVwo8wJyJclqWswIkhdSO8xvTnkwESv4yLzLutEOlBVlQbJzpyuS6vx0yHOYkwc=

‎tools/travis_postbuild.sh‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
DATEVAL=`date +%b-%d-%Y`
4+
VERSIONVAL=master
5+
6+
# Use tag as version
7+
if [ $TRAVIS_TAG ]; then
8+
VERSIONVAL=$TRAVIS_TAG
9+
fi
10+
11+
sed -e s%@DATE@%${DATEVAL}% .bintray.in > .bintray.tmp
12+
sed -e s%@VERSION@%${VERSIONVAL}% .bintray.tmp > .bintray.json

0 commit comments

Comments
 (0)