From aabad8a76b7decacea6d9ed42d5a562c84bdd715 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:10:07 +1100 Subject: [PATCH 01/11] Create config.yalm --- .circlci/config.yalm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .circlci/config.yalm diff --git a/.circlci/config.yalm b/.circlci/config.yalm new file mode 100644 index 0000000..d79edf3 --- /dev/null +++ b/.circlci/config.yalm @@ -0,0 +1,30 @@ +version: 2 +jobs: + build: + working_directory: ~/code + docker: + - image: circleci/android:api-26-alpha + environment: + JVM_OPTS: -Xmx3200m + steps: + - checkout + - restore_cache: + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} +# - run: +# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. +# command: sudo chmod +x ./gradlew + - run: + name: Download Dependencies + command: ./gradlew androidDependencies + - save_cache: + paths: + - ~/.gradle + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - run: + name: Run Tests + command: ./gradlew lint test + - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ + path: app/build/reports + destination: reports + - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ + path: app/build/test-results From c1b360635c2b5196bb609f10b3d1fb00b75e1952 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:12:20 +1100 Subject: [PATCH 02/11] Update config.yalm --- .circlci/config.yalm | 48 +++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/.circlci/config.yalm b/.circlci/config.yalm index d79edf3..48de984 100644 --- a/.circlci/config.yalm +++ b/.circlci/config.yalm @@ -1,30 +1,42 @@ +# Java Gradle CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# version: 2 jobs: build: - working_directory: ~/code docker: - - image: circleci/android:api-26-alpha + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + environment: + # Customize the JVM maximum heap limit JVM_OPTS: -Xmx3200m + TERM: dumb + steps: - checkout + + # Download and cache dependencies - restore_cache: - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} -# - run: -# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. -# command: sudo chmod +x ./gradlew - - run: - name: Download Dependencies - command: ./gradlew androidDependencies + keys: + - v1-dependencies-{{ checksum "build.gradle" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: gradle dependencies + - save_cache: paths: - ~/.gradle - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - - run: - name: Run Tests - command: ./gradlew lint test - - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ - path: app/build/reports - destination: reports - - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ - path: app/build/test-results + key: v1-dependencies-{{ checksum "build.gradle" }} + + # run tests! + - run: gradle test From ba25d1eaef736cdf444272c8bf85069c704784f7 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:14:19 +1100 Subject: [PATCH 03/11] Rename config.yalm to config.ylm --- .circlci/{config.yalm => config.ylm} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .circlci/{config.yalm => config.ylm} (100%) diff --git a/.circlci/config.yalm b/.circlci/config.ylm similarity index 100% rename from .circlci/config.yalm rename to .circlci/config.ylm From 6e941f531d03c184fe7bcd6f450a214c1f94e2a4 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:14:57 +1100 Subject: [PATCH 04/11] Rename config.ylm to config.yml --- .circlci/{config.ylm => config.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .circlci/{config.ylm => config.yml} (100%) diff --git a/.circlci/config.ylm b/.circlci/config.yml similarity index 100% rename from .circlci/config.ylm rename to .circlci/config.yml From ff9fefefcef8de577190f9b3ddd61c93ccfaeaa4 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:17:49 +1100 Subject: [PATCH 05/11] Update config.yml --- .circlci/config.yml | 51 +++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/.circlci/config.yml b/.circlci/config.yml index 48de984..932e283 100644 --- a/.circlci/config.yml +++ b/.circlci/config.yml @@ -1,42 +1,33 @@ -# Java Gradle CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# version: 2 jobs: build: + working_directory: ~/code docker: - # specify the version you desire here - - image: circleci/openjdk:8-jdk - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 - - working_directory: ~/repo - + - image: circleci/android:api-26-alpha environment: - # Customize the JVM maximum heap limit JVM_OPTS: -Xmx3200m - TERM: dumb - steps: - checkout - - # Download and cache dependencies - restore_cache: - keys: - - v1-dependencies-{{ checksum "build.gradle" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: gradle dependencies - + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - run: + name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. + command: sudo chmod +x ./gradlew + - run: + name: Download Dependencies + pre: + - echo y | android update sdk --no-ui --all --filter “tool,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository” + - echo y | $ANDROID_HOME/tools/bin/sdkmanager “extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2” + command: ./gradlew androidDependencies - save_cache: paths: - ~/.gradle - key: v1-dependencies-{{ checksum "build.gradle" }} - - # run tests! - - run: gradle test + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - run: + name: Run Tests + command: ./gradlew lint test + - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ + path: app/build/reports + destination: reports + - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ + path: app/build/test-results From d626b681c624087e382ad7935280c83008ec33ce Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:19:41 +1100 Subject: [PATCH 06/11] Create config.yml --- .circleci/config.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..48de984 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +# Java Gradle CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + JVM_OPTS: -Xmx3200m + TERM: dumb + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "build.gradle" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: gradle dependencies + + - save_cache: + paths: + - ~/.gradle + key: v1-dependencies-{{ checksum "build.gradle" }} + + # run tests! + - run: gradle test From 5ee561318a6c4d85ffb6a5a7a2fbe51d85c6e5e7 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:22:59 +1100 Subject: [PATCH 07/11] Update config.yml --- .circleci/config.yml | 49 +++++++++++++++++--------------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48de984..c159c0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,42 +1,31 @@ -# Java Gradle CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# version: 2 jobs: build: + working_directory: ~/code docker: - # specify the version you desire here - - image: circleci/openjdk:8-jdk - - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 - - working_directory: ~/repo - + - image: circleci/android:api-26-alpha environment: - # Customize the JVM maximum heap limit JVM_OPTS: -Xmx3200m - TERM: dumb - steps: - checkout - - # Download and cache dependencies - restore_cache: - keys: - - v1-dependencies-{{ checksum "build.gradle" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - - run: gradle dependencies - + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} +# - run: +# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. +# command: sudo chmod +x ./gradlew + - run: + name: Download Dependencies + command: ./gradlew androidDependencies - save_cache: paths: - ~/.gradle - key: v1-dependencies-{{ checksum "build.gradle" }} - - # run tests! - - run: gradle test + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - run: + name: Run Tests + command: ./gradlew lint test + - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ + path: app/build/reports + destination: reports + - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ + path: app/build/test-results + # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples From 1c63be6576e83628585d3ef43c5546897b5c8e43 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:23:43 +1100 Subject: [PATCH 08/11] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c159c0b..e941b54 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: working_directory: ~/code docker: - - image: circleci/android:api-26-alpha + - image: circleci/android:api-25-alpha environment: JVM_OPTS: -Xmx3200m steps: From 6718cc5e0f992b3415ad9d7e5592afa211e6967e Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:25:37 +1100 Subject: [PATCH 09/11] Update config.yml --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e941b54..7e35ed7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,9 +10,9 @@ jobs: - checkout - restore_cache: key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} -# - run: -# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. -# command: sudo chmod +x ./gradlew + - run: + name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. + command: sudo chmod +x ./gradlew - run: name: Download Dependencies command: ./gradlew androidDependencies From b3715cd45ea3ad1bcf52ee9a7412af722251f417 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:26:29 +1100 Subject: [PATCH 10/11] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e35ed7..4f1fb82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: working_directory: ~/code docker: - - image: circleci/android:api-25-alpha + - image: circleci/android:api-26-alpha environment: JVM_OPTS: -Xmx3200m steps: From 902f4b732c96c0e6cfd35307355939742c341ac6 Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Sat, 23 Feb 2019 14:29:20 +1100 Subject: [PATCH 11/11] Delete config.yml --- .circlci/config.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .circlci/config.yml diff --git a/.circlci/config.yml b/.circlci/config.yml deleted file mode 100644 index 932e283..0000000 --- a/.circlci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2 -jobs: - build: - working_directory: ~/code - docker: - - image: circleci/android:api-26-alpha - environment: - JVM_OPTS: -Xmx3200m - steps: - - checkout - - restore_cache: - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - - run: - name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. - command: sudo chmod +x ./gradlew - - run: - name: Download Dependencies - pre: - - echo y | android update sdk --no-ui --all --filter “tool,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository” - - echo y | $ANDROID_HOME/tools/bin/sdkmanager “extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2” - command: ./gradlew androidDependencies - - save_cache: - paths: - - ~/.gradle - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - - run: - name: Run Tests - command: ./gradlew lint test - - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ - path: app/build/reports - destination: reports - - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ - path: app/build/test-results