adding travis config for java project