Unverified Commit f3b8c581 authored by Earle F. Philhower, III's avatar Earle F. Philhower, III Committed by GitHub

Remove obsolete TRAVIS CI variables (#2292)

Use GH native ones instead.
parent 6d115cdc
......@@ -6,11 +6,6 @@ name: Arduino-Pico CI
on:
pull_request:
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_TAG: ${{ github.ref }}
jobs:
# Consistent style, spelling
......
......@@ -33,7 +33,6 @@ jobs:
# pip install --upgrade platformio
- name: Deploy updated JSON
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
BUILD_TYPE: package
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
......
......@@ -24,7 +24,6 @@ jobs:
python-version: '3.x'
- name: Build package JSON
env:
TRAVIS_BUILD_DIR: ${{ github.workspace }}
BUILD_TYPE: package
CI_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
run: |
......
......@@ -2,7 +2,7 @@
cache_dir=$(mktemp -d)
source "$TRAVIS_BUILD_DIR"/tests/common.sh
source "$GITHUB_WORKSPACE"/tests/common.sh
install_arduino nodebug
......
......@@ -2,7 +2,7 @@
cache_dir=$(mktemp -d)
source "$TRAVIS_BUILD_DIR"/tests/common.sh
source "$GITHUB_WORKSPACE"/tests/common.sh
if [ -z "$BUILD_PARITY" ]; then
mod=1
......
......@@ -4,7 +4,7 @@
set -ev
cd $TRAVIS_BUILD_DIR
cd $GITHUB_WORKSPACE
tools/boards.txt.py --boardsgen --ldgen --packagegen --docgen
......
......@@ -4,6 +4,6 @@
set -ev
cd $TRAVIS_BUILD_DIR/doc
cd $GITHUB_WORKSPACE/doc
SPHINXOPTS="-W" make html
......@@ -4,13 +4,13 @@
set -ev
export PKG_URL=https://github.com/esp8266/Arduino/releases/download/$TRAVIS_TAG/esp8266-$TRAVIS_TAG.zip
export DOC_URL=https://arduino-esp8266.readthedocs.io/en/$TRAVIS_TAG/
export PKG_URL=https://github.com/esp8266/Arduino/releases/download/$GITHUB_REF/esp8266-$GITHUB_REF.zip
export DOC_URL=https://arduino-esp8266.readthedocs.io/en/$GITHUB_REF/
if [ -z "$CI_GITHUB_API_KEY" ]; then
echo "Github API key not set. Skip building the package."
exit 0
fi
cd $TRAVIS_BUILD_DIR/package
cd $GITHUB_WORKSPACE/package
./build_boards_manager_package.sh
......@@ -4,7 +4,7 @@
set -ev
cd $TRAVIS_BUILD_DIR/tests/host
cd $GITHUB_WORKSPACE/tests/host
make -j2 FORCE32=0 ssl
......
......@@ -12,4 +12,4 @@ ${org}/../restyle.sh
git --version || true
git submodule foreach --recursive 'git reset --hard'
git diff --exit-code -- $TRAVIS_BUILD_DIR
git diff --exit-code -- $GITHUB_WORKSPACE
......@@ -230,9 +230,9 @@ function install_arduino()
{
local debug=$1
# Install Arduino IDE and required libraries
cd $TRAVIS_BUILD_DIR
install_ide $HOME/arduino_ide $TRAVIS_BUILD_DIR $debug
cd $TRAVIS_BUILD_DIR
cd $GITHUB_WORKSPACE
install_ide $HOME/arduino_ide $GITHUB_WORKSPACE $debug
cd $GITHUB_WORKSPACE
install_libraries
}
......@@ -244,7 +244,7 @@ function build_sketches_with_arduino()
# Compile sketches
build_sketches $HOME/arduino_ide $HOME/arduino_ide/examples "-l $HOME/Arduino/libraries ${build_extra}" $build_mod $build_rem
build_sketches $HOME/arduino_ide $TRAVIS_BUILD_DIR/libraries "-l $HOME/Arduino/libraries ${build_extra}" $build_mod $build_rem
build_sketches $HOME/arduino_ide $GITHUB_WORKSPACE/libraries "-l $HOME/Arduino/libraries ${build_extra}" $build_mod $build_rem
# Generate size report
cat size.log
......@@ -253,11 +253,11 @@ function build_sketches_with_arduino()
set -e
if [ -z "$TRAVIS_BUILD_DIR" ]; then
echo "TRAVIS_BUILD_DIR is not set, trying to guess:"
if [ -z "$GITHUB_WORKSPACE" ]; then
echo "GITHUB_WORKSPACE is not set, trying to guess:"
pushd $(dirname $0)/../ > /dev/null
TRAVIS_BUILD_DIR=$PWD
GITHUB_WORKSPACE=$PWD
popd > /dev/null
echo "TRAVIS_BUILD_DIR=$TRAVIS_BUILD_DIR"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
fi
......@@ -2,7 +2,7 @@
cache_dir=$(mktemp -d)
source "$TRAVIS_BUILD_DIR"/tests/common.sh
source "$GITHUB_WORKSPACE"/tests/common.sh
if [ "$BUILD_PARITY" = "even" ]; then
mod=2
......
......@@ -84,7 +84,7 @@ git submodule update --init
(cd pico-extras && git submodule update --init)
export HOME="${TMPCI}"
export TRAVIS_BUILD_DIR="${TMPCI}"
export GITHUB_WORKSPACE="${TMPCI}"
export BUILD_TYPE="$BUILD_TYPE"
if [ "$BUILD_TYPE" = "build" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment