More fixes for the upload process.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user