]> jfr.im git - yt-dlp.git/commitdiff
[ci] Disable download tests unless specifically invoked
authorpukkandan <redacted>
Thu, 25 Feb 2021 21:51:39 +0000 (03:21 +0530)
committerpukkandan <redacted>
Thu, 25 Feb 2021 21:58:18 +0000 (03:28 +0530)
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
.github/workflows/download.yml
.travis.yml.disabled [deleted file]

index 4f95d169dc6d817102e233c14937c506e6adeec1..a916dffd368b44cfb0e2e1e1cd40f6ff25aa44de 100644 (file)
@@ -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
index 07fdd26caa9060cac2e79b889c888de36b401556..d0edc80d61a7f9e49f942fdc999eb088d05a1d26 100644 (file)
@@ -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 (file)
index fb49984..0000000
+++ /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