mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Transition from TravisCI to GitHub CI (#7444)
Convert the continuous integration process to use GitHub's internal CI cloud. Allows us to run up to 20 jobs in parallel, speeding up CI immensely. Keep a short Travis-CI run, too, just for sanity and backup. Uses new keys and secret when publishing a release to esp8266.github.io.
This commit is contained in:
committed by
GitHub
parent
f8091311a3
commit
3bd24587e1
@ -1,33 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
#set -x
|
||||
# Extract the release name from a release
|
||||
|
||||
ver=`git describe --tag`
|
||||
# Default to draft tag name
|
||||
ver=$(basename $(jq -e -r '.ref' "$GITHUB_EVENT_PATH"))
|
||||
# If not available, try the publish tag name
|
||||
if [ "$ver" == "null" ]; then
|
||||
ver=$(jq -e -r '.release.tag_name' "$GITHUB_EVENT_PATH")
|
||||
fi
|
||||
# Fall back to the git description OTW (i.e. interactive)
|
||||
if [ "$ver" == "null" ]; then
|
||||
ver=$(git describe --tag)
|
||||
fi
|
||||
visiblever=$ver
|
||||
# match 0.0.*
|
||||
if [ "${ver%.*}" = 0.0 ]; then
|
||||
plainver=$ver
|
||||
|
||||
# Match 0.0.* as special-case early-access builds
|
||||
if [ "${ver%.*}" = 0.0 ]; then
|
||||
git tag -d ${ver}
|
||||
ver=`git describe --tag HEAD`
|
||||
plain_ver=$ver
|
||||
|
||||
else
|
||||
|
||||
# Extract next version from platform.txt
|
||||
next=`sed -n -E 's/version=([0-9.]+)/\1/p' ../platform.txt`
|
||||
|
||||
# Figure out how will the package be called
|
||||
ver=`git describe --exact-match`
|
||||
if [ $? -ne 0 ]; then
|
||||
# not tagged version; generate nightly package
|
||||
date_str=`date +"%Y%m%d"`
|
||||
is_nightly=1
|
||||
plain_ver="${next}-nightly"
|
||||
ver="${plain_ver}+${date_str}"
|
||||
else
|
||||
plain_ver=$ver
|
||||
fi
|
||||
visiblever=$ver
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
Reference in New Issue
Block a user