Skip to content

Commit

Permalink
py3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Aug 5, 2017
1 parent 156f715 commit 05a0e8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 05a0e8f

Please sign in to comment.