Skip to content

Commit

Permalink
appium-boneyard#38 - Selenium binary host configuration
Browse files Browse the repository at this point in the history
Selenium binary host configuration with npm arguments or environment variable.
Thanks jlipps for this remark !
  • Loading branch information
marcbuils authored Dec 13, 2016
1 parent b58a345 commit 3448eb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import log from './logger';
import crypto from 'crypto';

const SE_VER = "0.17.0";
const SE_DOWNLOAD_CDNURL = process.env.APPIUM_SELENDROID_CDNURL || "http://repo1.maven.org/maven2/io/selendroid/selendroid-standalone";
const SE_DOWNLOAD_CDNURL = process.env.npm_config_selendroid_driver_cdnurl ||
process.env.SELENDROID_DRIVER_CDNURL ||
"http://repo1.maven.org/maven2/io/selendroid/selendroid-standalone";
const SE_DOWNLOAD = `${SE_DOWNLOAD_CDNURL}/${SE_VER}/selendroid-standalone-${SE_VER}-with-dependencies.jar`;
const SE_DOWNLOAD_SHA256 = "7cf7163ac47f1c46eff95b62f78b58c1dabdec534acc6632da3784739f6e9d82";
const SE_DIR = path.resolve(__dirname, "..", "..", "selendroid");
Expand Down

0 comments on commit 3448eb3

Please sign in to comment.