From 605cca6c6aa42729753a279944ae4ac05e7082e8 Mon Sep 17 00:00:00 2001 From: Srinivasan Sekar Date: Tue, 22 Nov 2016 20:40:56 +0530 Subject: [PATCH] Added .travis.yml Fixed Checkstyle issues Added Travis Badge --- .travis.yml | 15 +++++++++++++++ README.md | 1 + .../java_client/android/UIAutomator2Test.java | 4 ++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..03ebc6da9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: java + +jdk: + - oraclejdk8 + +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/ + +script: + - ./gradlew clean build -x test diff --git a/README.md b/README.md index b3aa4c476..8e7ee142c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.appium/java-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.appium/java-client) [![Javadoc](https://javadoc-emblem.rhcloud.com/doc/io.appium/java-client/badge.svg)](http://www.javadoc.io/doc/io.appium/java-client) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f365c5e9458b42bf8a5b1d928d7e4f48)](https://www.codacy.com/app/appium/java-client) +[![Build Status](https://travis-ci.org/appium/java-client.svg?branch=master)](https://travis-ci.org/appium/java-client) This is the Java language binding for writing Appium Tests, conforms to [Mobile JSON Wire Protocol](https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md) diff --git a/src/test/java/io/appium/java_client/android/UIAutomator2Test.java b/src/test/java/io/appium/java_client/android/UIAutomator2Test.java index fedcac196..5fe7c3251 100644 --- a/src/test/java/io/appium/java_client/android/UIAutomator2Test.java +++ b/src/test/java/io/appium/java_client/android/UIAutomator2Test.java @@ -27,8 +27,8 @@ public class UIAutomator2Test { service.start(); if (service == null || !service.isRunning()) { - throw new AppiumServerHasNotBeenStartedLocallyException - ("An appium server node is not started!"); + throw new AppiumServerHasNotBeenStartedLocallyException( + "An appium server node is not started!"); } File appDir = new File("src/test/java/io/appium/java_client");