More fixes for the upload process.

This commit is contained in:
waltje
2018-04-18 02:28:16 -04:00
parent 9bb6142a7e
commit 433a5c6557
2 changed files with 9 additions and 2 deletions

View File

@@ -57,6 +57,10 @@
cd src
# We only need the first few characters of the commit ID.
export COMMIT=${TRAVIS_COMMIT::7}
# Build the project.
make -f win/mingw/Makefile.MinGW BUILD=${TRAVIS_BUILD_NUMBER}
if [ $? = 0 ]; then

View File

@@ -46,7 +46,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Ignore the cron builds.
[ $TRAVIS_EVENT_TYPE = "cron" ] && exit 0
[ "x${TRAVIS_EVENT_TYPE}" = "xcron" ] && exit 0
[ "x${DEBUG}" = "xy" ] && TARGET=debug
if [ "x${DEV_BUILD}" = "xy" ]; then
@@ -66,12 +66,15 @@
exit 1
fi
# We only need the first few characters of the commit ID.
export COMMIT=${TRAVIS_COMMIT::7}
echo "Uploading VARCem build #${TRAVIS_BUILD_NUMBER} target ${TARGET}"
curl -# -X POST \
-F "type=${BTYPE}" \
-F "build=${TRAVIS_BUILD_NUMBER}" \
-F "id=${TRAVIS_COMMIT}" \
-F "id=${COMMIT}" \
-F "notes=not available" \
-F "file_name=@${TARGET}.zip" \
${SITE_URL}