|
| 1 | +version: 2.1 |
| 2 | + |
| 3 | +orbs: |
| 4 | + android: wordpress-mobile/[email protected] |
| 5 | + |
| 6 | +jobs: |
| 7 | + Lint: |
| 8 | + executor: |
| 9 | + name: android/default |
| 10 | + api-version: "27" |
| 11 | + steps: |
| 12 | + - checkout |
| 13 | + - android/restore-gradle-cache: |
| 14 | + cache-prefix: lint |
| 15 | + - run: |
| 16 | + name: klint |
| 17 | + command: ./gradlew --stacktrace ktlint |
| 18 | + - run: |
| 19 | + name: Lint |
| 20 | + command: ./gradlew --stacktrace lintRelease |
| 21 | + - android/save-gradle-cache: |
| 22 | + cache-prefix: lint |
| 23 | + - store_artifacts: |
| 24 | + path: aztec/build/reports |
| 25 | + destination: reports |
| 26 | + Unit Tests: |
| 27 | + executor: |
| 28 | + name: android/default |
| 29 | + api-version: "27" |
| 30 | + steps: |
| 31 | + - checkout |
| 32 | + - android/restore-gradle-cache: |
| 33 | + cache-prefix: unit-tests |
| 34 | + - run: |
| 35 | + name: Unit tests |
| 36 | + command: ./gradlew --stacktrace -PtestsMaxHeapSize=1536m aztec:testRelease |
| 37 | + - android/save-gradle-cache: |
| 38 | + cache-prefix: unit-tests |
| 39 | + - android/save-test-results |
| 40 | + Connected Tests: |
| 41 | + executor: |
| 42 | + name: android/default |
| 43 | + api-version: "27" |
| 44 | + steps: |
| 45 | + - checkout |
| 46 | + - android/restore-gradle-cache: |
| 47 | + cache-prefix: connected-tests |
| 48 | + - run: |
| 49 | + name: Build |
| 50 | + command: ./gradlew --stacktrace app:assembleDebug app:assembleDebugAndroidTest |
| 51 | + - run: |
| 52 | + name: Decrypt credentials |
| 53 | + command: openssl aes-256-cbc -md sha256 -d -in .firebase.secrets.json.enc -out .firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}" |
| 54 | + - android/firebase-test: |
| 55 | + key-file: .firebase.secrets.json |
| 56 | + type: instrumentation |
| 57 | + apk-path: app/build/outputs/apk/debug/app-debug.apk |
| 58 | + test-apk-path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk |
| 59 | + device: model=Nexus5X,version=26,locale=en,orientation=portrait |
| 60 | + project: api-project-108380595987 |
| 61 | + timeout: 10m |
| 62 | + - android/save-gradle-cache: |
| 63 | + cache-prefix: connected-tests |
| 64 | + |
| 65 | +workflows: |
| 66 | + AztecEditor-Android: |
| 67 | + jobs: |
| 68 | + - Lint |
| 69 | + - Unit Tests |
| 70 | + - Connected Tests |
0 commit comments