Skip to content

Commit

Permalink
Merge pull request #5 from Automattic/circleci
Browse files Browse the repository at this point in the history
Set up basic CircleCI integration
  • Loading branch information
mzorz authored Jul 22, 2019
2 parents c5d0e47 + 9524a36 commit bced658
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2.1

orbs:
android: wordpress-mobile/[email protected]
slack: circleci/[email protected]

jobs:
Lint:
executor:
name: android/default
api-version: "29"
steps:
- checkout
- android/restore-gradle-cache
- run:
name: Check Style
command: ./gradlew --stacktrace checkstyle ktlint
- run:
name: Lint
command: |
./gradlew --stacktrace lintRelease || (grep -A20 -B2 'severity="Error"' */build/**/*.xml; exit 1);
- android/save-gradle-cache
- android/save-lint-results
Unit Tests:
executor:
name: android/default
api-version: "29"
steps:
- checkout
- android/restore-gradle-cache
- run:
name: Unit tests
command: ./gradlew --stacktrace -PtestsMaxHeapSize=1536m testRelease
- android/save-gradle-cache
- android/save-test-results

workflows:
portkey:
jobs:
- Lint
- Unit Tests

0 comments on commit bced658

Please sign in to comment.