diff --git a/.travis.yml b/.travis.yml index ea7628c9..e6a33adf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,12 +19,12 @@ android: # The SDK version used to compile your project # TODO: why is this here explicitly in addition to $ANDROID_TARGET below - android-23 - + # Additional components - extra-google-google_play_services - extra-google-m2repository - extra-android-m2repository - + # The SDK version used to compile your project - $ANDROID_TARGET @@ -35,7 +35,7 @@ android: - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} licenses: - - 'android-sdk-license-.+' + - 'android-sdk-license-.+' before_install: # Accept sdk licenses @@ -47,15 +47,15 @@ before_install: - unzip -qq gradle-5.3-bin.zip - export GRADLE_HOME=$PWD/gradle-5.3 - export PATH=$GRADLE_HOME/bin:$PATH - + # Build the project - gradle -v - + # Start the emulator - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI - emulator -avd test -no-skin -no-audio -no-window & - android-wait-for-emulator - adb shell input keyevent 82 & - + # The app will now automatically be installed and tested via # the command `gradle connectedCheck` \ No newline at end of file diff --git a/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java b/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java index 787eab7e..62abea22 100644 --- a/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java +++ b/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java @@ -93,4 +93,9 @@ void testCountCities() { assertEquals(1, cityList.countCities()); } + + @Test + void testCI(){ + assertNotEquals(1,0); + } } \ No newline at end of file