Skip to content

Commit c407099

Browse files
committed
Merge pull request #2 from browserstack/travis
Travis configured
2 parents 8eea7e2 + b0d11f5 commit c407099

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ language: java
33
before_install:
44
- true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19BQ0NFU1NfS0VZPUh5VmZydXJvb3dYb041eGhLZEs2Cg==`
55

6+
after_failure: cat /home/travis/build/browserstack/browserstack-local-java/target/surefire-reports/*

src/main/java/com/BrowserStack/Local.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ void start(HashMap<String,String> options) throws Exception {
6060
if (proc == null){
6161
ProcessBuilder processBuilder = new ProcessBuilder(command);
6262

63-
if((new File(logFilePath)).exists()){
64-
FileWriter f = new FileWriter(logFilePath);
65-
f.write("");
66-
f.close();
67-
}
63+
FileWriter fw = new FileWriter(logFilePath);
64+
fw.write("");
65+
fw.close();
6866

6967
proc = processBuilder.start();
7068
FileReader f = new FileReader(logFilePath);

src/main/java/com/BrowserStack/LocalBinary.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ void initialize(){
2727
arch = System.getProperty("os.arch");
2828

2929
if(osname.contains("Mac") || osname.contains("Darwin"))
30-
http_path="https://s3.amazonaws.com/browserStack/browserstack-local/BrowserStackLocal-darwin-x64";
30+
http_path="https://s3.amazonaws.com/bs-automate-prod/local/BrowserStackLocal-darwin-x64";
3131

3232
else if(osname.contains("Windows"))
33-
http_path="https://s3.amazonaws.com/browserStack/browserstack-local/BrowserStackLocal.exe";
33+
http_path="https://s3.amazonaws.com/bs-automate-prod/local/BrowserStackLocal-win32.exe";
3434

3535
else if (osname.contains("Linux") && arch.contains("64"))
36-
http_path="https://s3.amazonaws.com/browserStack/browserstack-local/BrowserStackLocal-linux-x64";
36+
http_path="https://s3.amazonaws.com/bs-automate-prod/local/BrowserStackLocal-linux-x64";
3737

3838
else
39-
http_path="https://s3.amazonaws.com/browserStack/browserstack-local/BrowserStackLocal-linux-ia32";
39+
http_path="https://s3.amazonaws.com/bs-automate-prod/local/BrowserStackLocal-linux-ia32";
4040
}
4141

4242
Boolean getBinary() throws Exception {

0 commit comments

Comments
 (0)