Skip to content

Commit

Permalink
edited tests launcher for python ccxt#445
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Nov 1, 2017
1 parent e8e042e commit fb672e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ script:
- cd ..
- npm run test-base
- set +e # (we deactivate set -e here, to prevent sudden log truncation in Travis, as it was suggested by the support team)
- node run-tests --js --python --python3; export TESTS_FAILED=$?
- node run-tests --js --python2 --python3; export TESTS_FAILED=$?
- set -e # activate it again!
- if [ "$TESTS_FAILED" -ne 0 ]; then exit 1; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push.sh; fi
Expand Down
3 changes: 2 additions & 1 deletion run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ const testExchange = async (exchange) => {
, allTests = [

{ language: 'JavaScript', key: '--js', exec: ['node', 'js/test/test.js', ...args] },
{ language: 'Python', key: '--python', exec: ['python2', 'python/test/test.py', ...args] },
{ language: 'Python', key: '--python', exec: ['python', 'python/test/test.py', ...args] },
{ language: 'Python', key: '--python2', exec: ['python2', 'python/test/test.py', ...args] },
{ language: 'Python 3', key: '--python3', exec: ['python3', 'python/test/test_async.py', ...args] },
{ language: 'PHP', key: '--php', exec: ['php', '-f', 'php/test/test.php', ...args] }
]
Expand Down

0 comments on commit fb672e8

Please sign in to comment.