Skip to content

Commit

Permalink
Relocating the packages and adding travis info
Browse files Browse the repository at this point in the history
  • Loading branch information
krmahadevan committed Jan 18, 2017
1 parent 29fec76 commit 0699cec
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 20 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: java
jdk: openjdk7
branches:
only:
- master
cache:
directories:
- "$HOME/.m2"
after_success:
- openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/pubring.gpg.enc
-out $GPG_DIR/pubring.gpg -d
- openssl aes-256-cbc -pass pass:$ENCRYPTION_PASSWORD -in $GPG_DIR/secring.gpg.enc
-out $GPG_DIR/secring.gpg -d
- "$GPG_DIR/publish.sh"
env:
global:
- GPG_DIR="`pwd`/deploy"
- secure: PughDfl3usvB295Pn+GNEhAfWrs51SpNsTeQGjUQWxbzjygKOV39aFtkJfE8uPR4z1Rf4WCcvOBFpHBhgSzOH+RPv8U01f5baqWXrAPP+V2/XwmaTNH0XpR1ipeDl+huu4v9WnRrbOlG40i7HP49sCPl88SWxUIoZJUFXR1z3wj/D13YK5UW8SswYQsuqf11ze6buynl7i2/c+5W3sjeKVqOtoIkw+291JtNce/07y7DD2dt5/f3ScKWQ/s+OODHlImo3NxFeYjNYcvcKO1wpcA6O+Oiu2dSa/94EmytA1JkHnhmf2UJhVokmwLZKwGifSQM+sEc2wEY+jdUjZESpF789YtXOGvf1R2PO80xehDjW5cYihn03Zw7AWx99g0v+sAUF1qsPfff07/7dOO/pEWgij7KqazOxgmGN28ofHIrMOHho+QW/VaxpYBFyWYYRuEMwBNiAazJyQOtCihg6vthGfUHOdQdx9TifcilStiLnrt3JU4N+LSNtpfU2nRNPSPK0gF6jIaIvn1exjvxFgO3wDk98fL981mDILIOorOf6kJeTufuJJZemtIuveC8awLD/IX0BIh/DqikBp+/WAgDckKjNc9etLwRkdN3lWWtht66Qj1i2h/P/5ylfejsofimju+xPlG2x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xS/jqahrjLJyeYCiuTTnwio6xwnh5xMzCfL2WbVTpMeCPi8OylB31mH7a36lil9juMiJRqb0NbPrEfTGxN7C5UAy77qTOWfrY/4fba1R09xSSLlvWdLCYHJQ2pSpicT+GfKy7qinMu5KX0DO0rg2cg1BhTwRgdr2GOkKBXohgbtU8bhQje1MOisHTFIeTHx78awrnQl1FHrZNg2aEAJiFHRmDysdPMGwFkSAIqbI687bnpfad5kj+ACpdBlB64sVNB2GJfWpN/tnzfejZARP6xb6y3X69vF01icOSv7hyeoVnQ5b18jFNiy2ePHxVP4kMuK5sQ8gBXzX0e3TZB+AhGTDByuIQtvTFYzbjEeYshwT59gcTU4RKDJVJmHWS/xhgV+jwJyoEV7ZYBFzRL58f4QojDPHxBK7oQ6T5QGbTB/90FPcJ88jYLpzocZfVvYNmcHjKBmWdEr9/8uzR5ObYppwzCh0Qtc0KvLW7AFMDw72r2t2jea/aF8C6qN70/VXcEkfbnh2+//0GKXE+akXWJIPVyOdoYhgT/aLqWOD8gZPV55KFelCH67xFFWIsMeXl5LiijpT5YvHVoUiimSjiUYpkBTx6jXNjY3vl3U9oMAikRekmEM5P9hB5U174yw=
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ represent an "On-demand Grid" (which explains the reason behind the name **just-

* Build the code using `mvn clean package`
* Drop the built jar in the directory that contains the selenium server standalone.
* Start the selenium hub using the command `java -cp selenium-server-standalone-3.0.1.jar:just-ask-1.0-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -servlets com.github.rationaleemotions.servlets.EnrollServlet`
* Start the selenium hub using the command `java -cp selenium-server-standalone-3.0.1.jar:just-ask-1.0-SNAPSHOT.jar org.openqa.grid.selenium.GridLauncherV3 -role hub -servlets com.rationaleemotions.servlets.EnrollServlet`
* Explicitly register the *ghost node* by loading the URL `http://localhost:4444/grid/admin/EnrollServlet` in a browser.

Now the **On-demand Grid** is ready for use.
6 changes: 6 additions & 0 deletions deploy/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
mvn deploy --settings $GPG_DIR/settings.xml -DperformRelease=true -DskipTests=true
exit $?
fi
Binary file added deploy/pubring.gpg.enc
Binary file not shown.
Binary file added deploy/secring.gpg.enc
Binary file not shown.
9 changes: 9 additions & 0 deletions deploy/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>ossrh</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.rationaleemotions</groupId>
<groupId>com.rationaleemotions</groupId>
<artifactId>just-ask</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
Expand Down Expand Up @@ -70,11 +70,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<!--<configuration>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
</plugin>
</plugins>
</build>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.rationaleemotions.proxy;
package com.rationaleemotions.proxy;

import com.google.gson.JsonObject;
import org.openqa.grid.common.RegistrationRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.rationaleemotions.proxy;
package com.rationaleemotions.proxy;

import com.github.rationaleemotions.server.SpawnedServer;
import com.rationaleemotions.server.SpawnedServer;
import com.google.common.collect.Maps;
import com.google.gson.JsonObject;
import org.openqa.grid.common.RegistrationRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* This package houses the proxy definitions.
*/
package com.github.rationaleemotions.proxy;
package com.rationaleemotions.proxy;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.rationaleemotions.server;
package com.rationaleemotions.server;

import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.rationaleemotions.server;
package com.rationaleemotions.server;

/**
* Represents the capabilities of a Server [ can be remote or local ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.rationaleemotions.server;
package com.rationaleemotions.server;

import org.openqa.grid.common.exception.GridException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* This package houses the server implementations.
*/
package com.github.rationaleemotions.server;
package com.rationaleemotions.server;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.rationaleemotions.servlets;
package com.rationaleemotions.servlets;

import com.google.common.base.Preconditions;
import org.apache.commons.io.IOUtils;
Expand Down Expand Up @@ -42,6 +42,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se

private void addProxy() {
//After the construction is finished, lets wrap up.

HttpClientFactory httpClientFactory = new HttpClientFactory();
try {
final int port = getRegistry().getHub().getConfiguration().port;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* This package houses the servlets.
*/
package com.rationaleemotions.servlets;

0 comments on commit 0699cec

Please sign in to comment.