Build and upload core resource package
This commit is contained in:
@@ -36,5 +36,11 @@ cd ..
|
|||||||
qmake projects/mtg/wagic-qt.pro CONFIG+=console CONFIG+=debug DEFINES+=CAPTURE_STDERR
|
qmake projects/mtg/wagic-qt.pro CONFIG+=console CONFIG+=debug DEFINES+=CAPTURE_STDERR
|
||||||
make -j 8
|
make -j 8
|
||||||
|
|
||||||
# and finish by running the testsuite
|
# Now we run the testsuite
|
||||||
./wagic
|
./wagic
|
||||||
|
|
||||||
|
# And we create resource package (not before testsuite, it mofifies resources)
|
||||||
|
cd projects/mtg/bin/Res
|
||||||
|
python createResourceZip.py
|
||||||
|
mv core_*.zip core.zip
|
||||||
|
cd ../../../..
|
||||||
|
|||||||
@@ -4,6 +4,13 @@ if [ "$TRAVIS_BRANCH" == "ci_upload_binaries" ]; then
|
|||||||
# curl -X POST -H "Authorization: token ${GH_TOKEN}" \
|
# curl -X POST -H "Authorization: token ${GH_TOKEN}" \
|
||||||
-d '{"tag_name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "target_commitish": "master", "name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "body": "Automatic pre-release '${TRAVIS_BUILD_NUMBER}'", "draft": true, "prerelease": true}' "https://api.github.com/repos/WagicProject/wagic/releases"
|
-d '{"tag_name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "target_commitish": "master", "name": "pre-release-'${TRAVIS_BUILD_NUMBER}'", "body": "Automatic pre-release '${TRAVIS_BUILD_NUMBER}'", "draft": true, "prerelease": true}' "https://api.github.com/repos/WagicProject/wagic/releases"
|
||||||
|
|
||||||
|
echo -e "Uploading Core resources\n"
|
||||||
|
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
|
||||||
|
-H "Accept: application/vnd.github.manifold-preview" \
|
||||||
|
-H "Content-Type: application/zip" \
|
||||||
|
--data-binary @projects/mtg/bin/Res/core.zip \
|
||||||
|
"https://uploads.github.com/repos/WagicProject/wagic/releases/113675/assets?name=Wagic-core-${TRAVIS_BUILD_NUMBER}.zip"
|
||||||
|
|
||||||
echo -e "Uploading android package\n"
|
echo -e "Uploading android package\n"
|
||||||
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
|
curl -X POST -H "Authorization: token ${GH_TOKEN}" \
|
||||||
-H "Accept: application/vnd.github.manifold-preview" \
|
-H "Accept: application/vnd.github.manifold-preview" \
|
||||||
|
|||||||
Reference in New Issue
Block a user