From c87ede88dfee400f36801e6bc3e32b1277052da0 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Tue, 14 Dec 2021 13:24:01 +0100 Subject: [PATCH] Delete .travis.yml file. (#5987) All the workflows are now migrated to Github Actions. Update the on-push.sh script to remove references to TravisCI variables. Signed-off-by: Abdelatif Guettouche --- .github/scripts/check-cmakelists.sh | 2 +- .github/scripts/on-push.sh | 13 +------ .travis.yml | 55 ----------------------------- 3 files changed, 2 insertions(+), 68 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/scripts/check-cmakelists.sh b/.github/scripts/check-cmakelists.sh index 89141ac6e..98d9722ad 100755 --- a/.github/scripts/check-cmakelists.sh +++ b/.github/scripts/check-cmakelists.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# This script is for Travis. It checks all non-examples source files in libraries/ and cores/ are listed in +# This script is used in the CI workflow. It checks all non-examples source files in libraries/ and cores/ are listed in # CMakeLists.txt for the cmake-based IDF component # # If you see an error running this script, edit CMakeLists.txt and add any new source files into your PR diff --git a/.github/scripts/on-push.sh b/.github/scripts/on-push.sh index e7d0d0af0..aa30fe746 100755 --- a/.github/scripts/on-push.sh +++ b/.github/scripts/on-push.sh @@ -2,18 +2,7 @@ set -e -if [ ! -z "$TRAVIS_TAG" ]; then - echo "Skipping Test: Tagged build" - exit 0 -fi - -if [ ! -z "$GITHUB_WORKSPACE" ]; then - export TRAVIS_BUILD_DIR="$GITHUB_WORKSPACE" - export TRAVIS_REPO_SLUG="$GITHUB_REPOSITORY" -elif [ ! -z "$TRAVIS_BUILD_DIR" ]; then - export GITHUB_WORKSPACE="$TRAVIS_BUILD_DIR" - export GITHUB_REPOSITORY="$TRAVIS_REPO_SLUG" -else +if [ -z "$GITHUB_WORKSPACE" ]; then export GITHUB_WORKSPACE="$PWD" export GITHUB_REPOSITORY="espressif/arduino-esp32" fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2fb1dc44d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,55 +0,0 @@ -sudo: false - -language: python - -os: - - linux - -git: - depth: false - -before_install: - - git submodule update --init --recursive - -stages: - - build - - deploy - -jobs: - include: - - - name: "Build Arduino 0" - if: tag IS blank AND (type = pull_request OR (type = push AND branch = master)) - stage: build - script: $TRAVIS_BUILD_DIR/.github/scripts/on-push.sh 0 10 - - - name: "Build Arduino 1" - if: tag IS blank AND (type = pull_request OR (type = push AND branch = master)) - stage: build - script: $TRAVIS_BUILD_DIR/.github/scripts/on-push.sh 1 10 - - - name: "Build Arduino 2" - if: tag IS blank AND (type = pull_request OR (type = push AND branch = master)) - stage: build - script: $TRAVIS_BUILD_DIR/.github/scripts/on-push.sh 2 10 - - - name: "Build Arduino 3" - if: tag IS blank AND (type = pull_request OR (type = push AND branch = master)) - stage: build - script: $TRAVIS_BUILD_DIR/.github/scripts/on-push.sh 3 10 - - - name: "Build PlatformIO" - if: tag IS blank AND (type = pull_request OR (type = push AND branch = master)) - stage: build - script: $TRAVIS_BUILD_DIR/.github/scripts/on-push.sh 1 1 - -notifications: - email: - on_success: change - on_failure: change - webhooks: - urls: - - https://webhooks.gitter.im/e/cb057279c430d91a47a8 - on_success: change # options: [always|never|change] default: always - on_failure: always # options: [always|never|change] default: always - on_start: never # options: [always|never|change] default: always \ No newline at end of file -- GitLab