From edbd406abc95740c1f474e49e9b003d5dd0f3ec2 Mon Sep 17 00:00:00 2001 From: James Treanor Date: Fri, 10 May 2019 15:32:19 +0100 Subject: [PATCH] Run connected tests nightly on Firebase Test Lab --- .circleci/.firebase.secrets.json.enc | Bin 0 -> 2400 bytes .circleci/config.yml | 34 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .circleci/.firebase.secrets.json.enc diff --git a/.circleci/.firebase.secrets.json.enc b/.circleci/.firebase.secrets.json.enc new file mode 100644 index 0000000000000000000000000000000000000000..84e8c322edb091d9df44f59e11f170621284ba28 GIT binary patch literal 2400 zcmV-m37_^;VQh3|WM5x>#cRv&FuS~&eOI>_Aegk{nI6rgcN2*3!U~h$pq?}2%Sd?G>0Kp$qd{kooA2UE z=T>NBGua1pjy!$T;R|t}5NaA&+ZL)oi6KD`SV=ToMoq#)73?S&Q(B3-9#_jkkVOc} z|L^8yaHB&fHFf|V3cNSXT=$8UzPyFwWvK2>=OpdoWA6|#{V%EL9UHl!fms7AoidnL zi>&u7K0)R>A=gLy3y4{2VXAhCAOnk1VItUj$_bO|bce?271>)-rRF`jGC}M6!d0P2 ztdeb6(p7gQT){)=wIhIGC&SAaVD+x-Kif+7^#65-qvY}mu20rc877_LsLkmRt_dZ4$<10{c5Hs z4@Y+4NEN&2rE~@MLhM*&H>gVXhKn&XAFQ)(AH6HwPw2reqZ}3dXuP10NL*V*K5Kcg zf_cb?SB_l=>`g0V@llIXIMclXA~f_rvNCrpsRcKT4r&C#q1D;{?Z?-XBr_H+*WKo@ zBHd5)*Wr&yI@_}*XJXrU`vT))uCbetih70&2dFSUdDEm&_f*w?n8XyDh(S!FODY_9 zo^s>GERS?__@qn({RC_Op;KUvBMWtkyf^PX`At69*5wK=P?@0p2*GUZ)WvjO;&}TT zMughG*xn(fN8ji8?~axA*z>VGgGz-9eCqo{`D~>q6T?dP>tb+?4=L5~-aV32qYtB| z)4>$lLmcw3Ls-Qdzosmgy6h%9e`(%n|7KjN-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QrWZNYYk{-{2byq#x^rAKa`(TfF1c$*;Uicdk}+RnxwyJk&m zdKFcIS^Ocs4ziO8wW;Z_WNqo!lbwX|OA=gq8IXzk4T+H2tE*PY18GH^bun5P*wQDE ze2lgqkM5a{GZv+js68K~y)=Bj@70oGPR-BinUTk8?qKNbBqZE>hGs?|h4)+znw!!^ S!(zqRco$F=M<;84gQ@n?gtM;z literal 0 HcmV?d00001 diff --git a/.circleci/config.yml b/.circleci/config.yml index 012c62c9adf4..faf432ab0c5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,6 +52,30 @@ jobs: fi - android/save-gradle-cache - android/save-lint-results + connected-tests: + executor: + name: android/default + api-version: "28" + steps: + - checkout + - android/restore-gradle-cache + - copy-gradle-properties + - run: + name: Build + command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace + - run: + name: Decrypt credentials + command: openssl aes-256-cbc -md sha256 -d -in .circleci/.firebase.secrets.json.enc -out .circleci/.firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}" + - android/firebase-test: + key-file: .circleci/.firebase.secrets.json + type: instrumentation + apk-path: WordPress/build/outputs/apk/vanilla/debug/WordPress-vanilla-debug.apk + test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/WordPress-vanilla-debug-androidTest.apk + device: model=Nexus5X,version=26,locale=en,orientation=portrait + project: api-project-108380595987 + timeout: 10m + results-history-name: CircleCI WordPress Connected Tests + - android/save-gradle-cache strings-check: docker: - image: circleci/ruby:2.3 @@ -68,3 +92,13 @@ workflows: - strings-check - test - lint + nightly: + triggers: + - schedule: + cron: "0 0 * * *" + filters: + branches: + only: + - develop + jobs: + - connected-tests