Skip to content

Commit

Permalink
Travis CI: Split JavaScript/Python into separate jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmwhite committed Jul 11, 2017
1 parent 91148de commit 4f41d82
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ python:
- 3.4
- 3.5
- 3.6
env: TEST_SUITE=py
matrix:
include:
env: TEST_SUITE=js
addons:
apt:
packages:
Expand All @@ -12,11 +16,9 @@ cache:
pip: true
directories:
- ./stethoscope/ui/node_modules
install:
before_install:
- nvm install 6.9.5
- nvm use 6.9.5
- make install-node-requirements
- make install-python-requirements
install:
- ./.travis/install.sh
script:
- pytest
- make test-js
- make test-$TEST_SUITE
16 changes: 16 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -e
set -u

case "${TEST_SUITE}" in
js)
make install-node-requirements;
;;
py)
make install-python-requirements;
;;
*)
echo "Unknown test suite: $TEST_SUITE"
exit 1
esac;

0 comments on commit 4f41d82

Please sign in to comment.