From 3638226215215383c7a83517479c5df18ab20ac5 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 26 Feb 2021 03:21:39 +0530 Subject: [PATCH] [ci] Disable download tests unless specifically invoked Tests can be enabled/disabled using the following in the commit message * Run Download: `ci-run-dl` * Skip Core: `ci-skip` * Skip Quick & Core: `ci-skip-all` (replace "-" by a space " ") --- .github/workflows/core.yml | 2 +- .github/workflows/download.yml | 2 +- .travis.yml.disabled | 38 ---------------------------------- 3 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 .travis.yml.disabled diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 4f95d169d..a916dffd3 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -3,7 +3,7 @@ on: [push, pull_request] jobs: tests: name: Core Tests - if: "!contains(github.event.head_commit.message, 'ci skip all')" + if: "!contains(github.event.head_commit.message, 'ci skip')" runs-on: ${{ matrix.os }} strategy: fail-fast: true diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index 07fdd26ca..d0edc80d6 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -3,7 +3,7 @@ on: [push, pull_request] jobs: tests: name: Download Tests - if: "!contains(github.event.head_commit.message, 'ci skip dl') && !contains(github.event.head_commit.message, 'ci skip all')" + if: "contains(github.event.head_commit.message, 'ci run dl')" runs-on: ${{ matrix.os }} strategy: fail-fast: true diff --git a/.travis.yml.disabled b/.travis.yml.disabled deleted file mode 100644 index fb499845e..000000000 --- a/.travis.yml.disabled +++ /dev/null @@ -1,38 +0,0 @@ -language: python -python: - - "2.6" - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - - "3.6" - - "pypy" - - "pypy3" -dist: trusty -env: - - YTDL_TEST_SET=core -jobs: - include: - - python: 3.7 - dist: xenial - env: YTDL_TEST_SET=core - - python: 3.8 - dist: xenial - env: YTDL_TEST_SET=core - - python: 3.8-dev - dist: xenial - env: YTDL_TEST_SET=core - - env: JYTHON=true; YTDL_TEST_SET=core - - name: flake8 - python: 3.8 - dist: xenial - install: pip install flake8 - script: flake8 . - fast_finish: true - allow_failures: - - env: YTDL_TEST_SET=download - - env: JYTHON=true; YTDL_TEST_SET=core -before_install: - - if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi -script: ./devscripts/run_tests.sh