From a7945a4ddbf6967e2a3e6bf3851ab9f307068f65 Mon Sep 17 00:00:00 2001 From: Choo Shee Yeow <36469528+Jeremy0818@users.noreply.github.com> Date: Tue, 10 Mar 2020 17:43:00 -0600 Subject: [PATCH 01/13] update this file From a3321ce44cd9fabc98191a490d84a8d5171cde83 Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 17:45:08 -0600 Subject: [PATCH 02/13] =?UTF-8?q?update=20travis=20file=20=E2=80=8E?= =?UTF-8?q?=E2=81=A8Macintosh=20HD=E2=81=A9=20=E2=96=B8=20=E2=81=A8Users?= =?UTF-8?q?=E2=81=A9=20=E2=96=B8=20=E2=81=A8macbookpro=E2=81=A9=20?= =?UTF-8?q?=E2=96=B8=20=E2=81=A8Downloads=E2=81=A9#!/bin/bash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 242 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 241 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e52c153e..8cae7b6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,244 @@ -language: android +language: androilanguage: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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` +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android jdk: oraclejdk8 env: From c371743609d43275ceb95c895adeaa34a9105e4e Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 17:59:22 -0600 Subject: [PATCH 03/13] second commit --- .travis.yml | 302 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 301 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8cae7b6c..ac71084c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,304 @@ -language: androilanguage: android +language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: androilanguage: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: androidlanguage: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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` jdk: oraclejdk8 env: From afc686ddc795ef61acca5871420d1333e3440288 Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 18:04:22 -0600 Subject: [PATCH 04/13] modified https --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ac71084c..9f5f3f7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,7 @@ before_install: # Get gradle - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip - unzip -qq gradle-5.3-bin.zip - export GRADLE_HOME=$PWD/gradle-5.3 - export PATH=$GRADLE_HOME/bin:$PATH From e201953f14092acd8431521302f0e3a143b51c6a Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 18:08:35 -0600 Subject: [PATCH 05/13] modified travis file again --- .travis.yml | 360 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 360 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9f5f3f7a..4d6d3692 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,366 @@ language: android jdk: oraclejdk8 +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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`language: android +jdk: oraclejdk8 + +env: + global: + - ANDROID_TARGET=android-22 + - ANDROID_ABI=armeabi-v7a + +android: + components: + # Uncomment the lines below if you want to + # use the latest revision of Android SDK Tools + - tools + - platform-tools + + # The BuildTools version used by your project + - build-tools-23.0.3 + + # 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 + + # Specify at least one system image, + # if you need to run emulator(s) during your tests. + # The line should look like this after interpolation: + # - sys-img-armeabi-v7a-android-22 + - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} + +licenses: + - 'android-sdk-license-.+' + +before_install: + # Accept sdk licenses + - yes | sdkmanager "platforms;android-29" + + # Get gradle + - chmod +x gradlew + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - 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` +jdk: oraclejdk8 + env: global: - ANDROID_TARGET=android-22 From 99edbd8f45195432d1553d084ddf65a33b1a39ee Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 18:21:08 -0600 Subject: [PATCH 06/13] modified travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4d6d3692..08cef625 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,7 +103,7 @@ before_install: # Get gradle - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip - unzip -qq gradle-5.3-bin.zip - export GRADLE_HOME=$PWD/gradle-5.3 - export PATH=$GRADLE_HOME/bin:$PATH From 7f133eb18c75d7299708acd5c73b2bf5e01a9fb8 Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 18:26:49 -0600 Subject: [PATCH 07/13] modify again and again --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08cef625..9e0157a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,7 +103,7 @@ before_install: # Get gradle - chmod +x gradlew - - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip + - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - unzip -qq gradle-5.3-bin.zip - export GRADLE_HOME=$PWD/gradle-5.3 - export PATH=$GRADLE_HOME/bin:$PATH @@ -163,7 +163,7 @@ before_install: # Get gradle - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip + - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip - unzip -qq gradle-5.3-bin.zip - export GRADLE_HOME=$PWD/gradle-5.3 - export PATH=$GRADLE_HOME/bin:$PATH From 75cc34b767ef3293c783a8225b9a1e626148fea3 Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 19:07:26 -0600 Subject: [PATCH 08/13] commit failing test case --- .../com/example/simpleparadox/listycity/CityListTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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..4c50c6f1 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 testFailing() { + assertTrue(false); + } } \ No newline at end of file From c7373ece631a065f6ba8d3431394827fb71a685a Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 22:09:51 -0600 Subject: [PATCH 09/13] commit passing test case --- .../java/com/example/simpleparadox/listycity/CityListTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4c50c6f1..2e4ae635 100644 --- a/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java +++ b/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java @@ -96,6 +96,6 @@ void testCountCities() { @Test void testFailing() { - assertTrue(false); + assertTrue(true); } } \ No newline at end of file From 780a410256587484b856e63746dedb2a8f9df7c5 Mon Sep 17 00:00:00 2001 From: Choo Shee Yeow <36469528+Jeremy0818@users.noreply.github.com> Date: Tue, 10 Mar 2020 22:14:42 -0600 Subject: [PATCH 10/13] update corrected travis file --- .travis.yml | 900 ---------------------------------------------------- 1 file changed, 900 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e0157a2..d602da97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,905 +57,5 @@ before_install: - android-wait-for-emulator - adb shell input keyevent 82 & - # The app will now automatically be installed and tested via - # the command `gradle connectedCheck`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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` -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget https://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: androilanguage: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: androidlanguage: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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` -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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` -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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`language: android -jdk: oraclejdk8 - -env: - global: - - ANDROID_TARGET=android-22 - - ANDROID_ABI=armeabi-v7a - -android: - components: - # Uncomment the lines below if you want to - # use the latest revision of Android SDK Tools - - tools - - platform-tools - - # The BuildTools version used by your project - - build-tools-23.0.3 - - # 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 - - # Specify at least one system image, - # if you need to run emulator(s) during your tests. - # The line should look like this after interpolation: - # - sys-img-armeabi-v7a-android-22 - - sys-img-${ANDROID_ABI}-${ANDROID_TARGET} - -licenses: - - 'android-sdk-license-.+' - -before_install: - # Accept sdk licenses - - yes | sdkmanager "platforms;android-29" - - # Get gradle - - chmod +x gradlew - - wget http://services.gradle.org/distributions/gradle-5.3-bin.zip - - 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` From 0d632a439ba7b30722ece7e81ad99bbb20b9ca66 Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 22:23:46 -0600 Subject: [PATCH 11/13] commit without failing test case --- .../com/example/simpleparadox/listycity/CityListTest.java | 5 ----- 1 file changed, 5 deletions(-) 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 2e4ae635..787eab7e 100644 --- a/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java +++ b/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java @@ -93,9 +93,4 @@ void testCountCities() { assertEquals(1, cityList.countCities()); } - - @Test - void testFailing() { - assertTrue(true); - } } \ No newline at end of file From 014deeec486a990d1f2d210376dff5c3579bac1d Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 23:16:12 -0600 Subject: [PATCH 12/13] commit new failing test case --- .../com/example/simpleparadox/listycity/CityListTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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..3423c15b 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,11 @@ void testCountCities() { assertEquals(1, cityList.countCities()); } + + @Test + void testSameCityName() { + City city = mockCity(); + City testCity = new City("test", "ing"); + assertTrue(false); + } } \ No newline at end of file From 3309b582ae4c1393a810b0e262c9b241837e393a Mon Sep 17 00:00:00 2001 From: Jeremy0818 Date: Tue, 10 Mar 2020 23:37:54 -0600 Subject: [PATCH 13/13] commit new passing test case --- .../main/java/com/example/simpleparadox/listycity/City.java | 4 ++++ .../com/example/simpleparadox/listycity/CityListTest.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/simpleparadox/listycity/City.java b/app/src/main/java/com/example/simpleparadox/listycity/City.java index ad43a057..fdb9ae50 100644 --- a/app/src/main/java/com/example/simpleparadox/listycity/City.java +++ b/app/src/main/java/com/example/simpleparadox/listycity/City.java @@ -21,4 +21,8 @@ String getProvinceName(){ public int compareTo(City o) { return city.compareTo(o.getCityName()); } + + public boolean sameCityName(City city) { + return this.city.equals(city.getCityName()); + } } 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 3423c15b..81e2e3c0 100644 --- a/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java +++ b/app/src/test/java/com/example/simpleparadox/listycity/CityListTest.java @@ -97,7 +97,7 @@ void testCountCities() { @Test void testSameCityName() { City city = mockCity(); - City testCity = new City("test", "ing"); - assertTrue(false); + City testCity = new City("Edmonton", "new province"); + assertTrue(testCity.sameCityName(mockCity())); } } \ No newline at end of file