From 05a0e8f511c518f34382b140c8de3c8d052f4b87 Mon Sep 17 00:00:00 2001 From: Igor Kroitor Date: Sat, 5 Aug 2017 23:30:31 +0300 Subject: [PATCH] py3 test --- .travis.yml | 4 ++-- run-tests.js | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 974e40c9e8532..8fa975b87a6d0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,8 @@ before_install: - set -e - sudo wget --quiet https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb - sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb -- python3 -V -- pip3 -V +- python3 --version +- pip3 --version script: - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm config set git-tag-version=false && NPM_VERSION=$(npm version patch); fi - npm run build diff --git a/run-tests.js b/run-tests.js index 4a90a68d8b09f..afb2eba57e1bd 100644 --- a/run-tests.js +++ b/run-tests.js @@ -26,10 +26,8 @@ const keys = { '--js': false, // run JavaScript tests only '--php': false, // run PHP tests only - '--python': false, // run (all?) Python tests only - // reserved for future use - // '--python2': false, // run Python 2 tests only - // '--python3': false, // run Python 3 tests only + '--python': false, // run Python 2 tests only + '--python3': false, // run Python 3 tests only '--es6': false, // run JS tests against ccxt.js instead of ccxt.es5.js (no need to `npm run build` before) } @@ -115,9 +113,7 @@ const testMarket = async (market) => { { language: 'JavaScript', key: '--js', exec: ['node', 'test.js', ...args, ...keys['--es6'] ? ['--es6'] : []] }, { language: 'Python', key: '--python', exec: ['python', 'test.py', ...args] }, - // added for future use (nearest future, I hope) - // { language: 'Python 2', key: '--python2', exec: ['python2', 'test.py', ...args] }, - // { language: 'Python 3', key: '--python3', exec: ['python3', 'test.py', ...args] }, + { language: 'Python 3', key: '--python3', exec: ['python3', 'test.py', ...args] }, { language: 'PHP', key: '--php', exec: ['php', '-f', 'test.php', ...args] } ] , selectedTests = allTests.filter (t => keys[t.key])