Skip to content

Commit 1978e7b

Browse files
committed
wip
1 parent 5fa07cd commit 1978e7b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cache:
1313
directories:
1414
- $HOME/astyle
1515

16+
#useless?
1617
#stages:
1718
# - build
1819
# - deploy
@@ -82,11 +83,11 @@ jobs:
8283
# Deploy stage.
8384
# Here we build the package JSON (always) and do the deployments
8485
- name: "Package / deploy"
86+
if: env(TRAVIS_PULL_REQUEST) != "false"
8587
stage: deploy
8688
script: $TRAVIS_BUILD_DIR/tests/common.sh
8789
env: BUILD_TYPE=package
8890
# TRAVIS_PULL_REQUEST is set to the pull request number if the current job is a pull request build, or false if it’s not.
89-
if: env(TRAVIS_PULL_REQUEST) != "false"
9091
deploy:
9192
# Create Github release, upload artifacts
9293
- provider: releases

package/build_boards_manager_package.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,14 @@ if [ -z "$CI_GITHUB_API_KEY" ]; then
132132
fi
133133
curl_gh_token_arg=(-H "Authorization: token $CI_GITHUB_API_KEY")
134134

135+
# test
136+
echo "key was '$CI_GITHUB_API_KEY'"
137+
CI_GITHUB_API_KEY="vt6StBC+ghqnh8YrreNo3wAzGGddJ2S4YpVZkz4S84xLEGWkIEghQhTrjlhzjBsrnHfLNko4tz9EsNx0yQ8yBlPOdReETGAkqnAU7PSPFss0qGcCRUXYtozNjbFQq6TWIxECK4xq40R9tE6NyeOpm9AYJtwF/v18u2T+T9qSgGQ="
138+
135139
# Get previous release name
140+
echo "======== curl dumped header"
136141
curl --silent -D /dev/stderr ${curl_gh_token_arg[@]} https://api.github.com/repos/esp8266/Arduino/releases > releases.json
142+
echo "======== curl"
137143

138144
# Previous final release (prerelase == false)
139145
prev_release=$(jq -r '. | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name' releases.json)

0 commit comments

Comments
 (0)