Skip to content

Commit

Permalink
Merge pull request #137 from openhealthcare/travis-fix
Browse files Browse the repository at this point in the history
if the travis version is 2.7 look in the opal env for 2.7.9
  • Loading branch information
davidmiller committed May 19, 2017
2 parents 57d0cba + fddb2ad commit 70cc45b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions config/karma.conf.js
@@ -1,8 +1,13 @@
module.exports = function(config){
var opalPath;
var opalPath, pythonVersion;
if(process.env.TRAVIS){
python_version = process.env.TRAVIS_PYTHON_VERSION;
opalPath = '/home/travis/virtualenv/python' + python_version + '/src/opal';
if(process.env.TRAVIS_PYTHON_VERSION === "2.7"){
pythonVersion = "2.7.9";
}
else{
pythonVersion = process.env.TRAVIS_PYTHON_VERSION;
}
opalPath = '/home/travis/virtualenv/python' + pythonVersion + '/src/opal';
}
else{
opalPath = '../../opal';
Expand Down

0 comments on commit 70cc45b

Please sign in to comment.