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