From 49bd8d5e2e5c4de8c1c409adffc557cb198f7eee Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sun, 5 Feb 2017 02:41:22 +0700 Subject: [travis] Add python 3.6 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index c74c9cc12..4833c76e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ python: - "3.3" - "3.4" - "3.5" + - "3.6" sudo: false script: nosetests test --verbose notifications: -- cgit 1.4.1 From 1e2c3f61fc952620a52a8a3a79bcd1a6f7d8ecae Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sun, 5 Feb 2017 03:33:23 +0700 Subject: [travis] Separate builds for core and download --- .travis.yml | 7 ++++++- devscripts/run_tests.sh | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 devscripts/run_tests.sh (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 4833c76e9..8ba93ec02 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,12 @@ python: - "3.5" - "3.6" sudo: false -script: nosetests test --verbose +env: + - YTDL_TEST_SET=core + - YTDL_TEST_SET=download +before_script: + - chmod +x ./devscripts/run_tests.sh +script: ./devscripts/run_tests.sh notifications: email: - filippo.valsorda@gmail.com diff --git a/devscripts/run_tests.sh b/devscripts/run_tests.sh new file mode 100644 index 000000000..7f4c1e083 --- /dev/null +++ b/devscripts/run_tests.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +DOWNLOAD_TESTS="age_restriction|download|subtitles|write_annotations|iqiyi_sdk_interpreter" + +test_set="" + +case "$YTDL_TEST_SET" in + core) + test_set="-I test_($DOWNLOAD_TESTS)\.py" + ;; + download) + test_set="-I test_(?!$DOWNLOAD_TESTS).+\.py" + ;; + *) + break + ;; +esac + +nosetests test --verbose $test_set -- cgit 1.4.1 From 099cfdb770f458de7cfdf3e814fbb9f43db217ea Mon Sep 17 00:00:00 2001 From: Anisse Astier Date: Wed, 15 Feb 2017 17:28:31 +0100 Subject: [devscripts/run_tests.sh] Change permission for script to 755 --- .travis.yml | 2 -- devscripts/run_tests.sh | 0 2 files changed, 2 deletions(-) mode change 100644 => 100755 devscripts/run_tests.sh (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 8ba93ec02..f41e11137 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,6 @@ sudo: false env: - YTDL_TEST_SET=core - YTDL_TEST_SET=download -before_script: - - chmod +x ./devscripts/run_tests.sh script: ./devscripts/run_tests.sh notifications: email: diff --git a/devscripts/run_tests.sh b/devscripts/run_tests.sh old mode 100644 new mode 100755 -- cgit 1.4.1 From 9a9de2d7b2462c9a16bac0ead3f415ef64179833 Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sat, 21 Oct 2017 01:32:01 +0700 Subject: [travis] Allow download tests to fail and fast finish --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f41e11137..b655738ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,10 @@ sudo: false env: - YTDL_TEST_SET=core - YTDL_TEST_SET=download +matrix: + fast_finish: true + allow_failures: + - env: YTDL_TEST_SET=download script: ./devscripts/run_tests.sh notifications: email: -- cgit 1.4.1 From 21ce434051f104bd270c4d03ddf524adc161f582 Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sat, 21 Oct 2017 02:14:25 +0700 Subject: [travis] Enable IRC notifications Let's see how is it verbose now --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index b655738ec..7d77e6c70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ notifications: email: - filippo.valsorda@gmail.com - yasoob.khld@gmail.com -# irc: -# channels: -# - "irc.freenode.org#youtube-dl" -# skip_join: true + irc: + channels: + - "irc.freenode.org#youtube-dl" + skip_join: true -- cgit 1.4.1 From f7a5038305682a2f41ca08addc338198c3c2e27b Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sun, 22 Oct 2017 02:46:28 +0700 Subject: [travis] Disable IRC notifications --- .travis.yml | 4 ---- 1 file changed, 4 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7d77e6c70..5f4f3922b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,3 @@ notifications: email: - filippo.valsorda@gmail.com - yasoob.khld@gmail.com - irc: - channels: - - "irc.freenode.org#youtube-dl" - skip_join: true -- cgit 1.4.1 From 54009c246e8eed38cfa8dc3eecb5619c1c81a1f2 Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Mon, 1 Jan 2018 21:54:28 +0700 Subject: [travis] Add PyPy builds --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5f4f3922b..7b175e9c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ python: - "3.4" - "3.5" - "3.6" + - "pypy" + - "pypy3" sudo: false env: - YTDL_TEST_SET=core -- cgit 1.4.1 From 7a6c204fcb6ba5a1a5149ea7a3c186eab87fc7e4 Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Mon, 1 Jan 2018 23:21:39 +0700 Subject: [travis] Add Jython build --- .travis.yml | 11 +++++++---- devscripts/install_jython.sh | 5 +++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 devscripts/install_jython.sh (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 7b175e9c9..92f326860 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,11 +14,14 @@ env: - YTDL_TEST_SET=core - YTDL_TEST_SET=download matrix: + include: + - env: JYTHON=true; YTDL_TEST_SET=core + - env: JYTHON=true; YTDL_TEST_SET=download fast_finish: true allow_failures: - env: YTDL_TEST_SET=download + - env: JYTHON=true; YTDL_TEST_SET=core + - env: JYTHON=true; YTDL_TEST_SET=download +before_install: + - if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi script: ./devscripts/run_tests.sh -notifications: - email: - - filippo.valsorda@gmail.com - - yasoob.khld@gmail.com diff --git a/devscripts/install_jython.sh b/devscripts/install_jython.sh new file mode 100755 index 000000000..bafca4da4 --- /dev/null +++ b/devscripts/install_jython.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +wget http://central.maven.org/maven2/org/python/jython-installer/2.7.1/jython-installer-2.7.1.jar +java -jar jython-installer-2.7.1.jar -s -d "$HOME/jython" +$HOME/jython/bin/jython -m pip install nose -- cgit 1.4.1