From 913af190174d5eb5e04b06724ab077ccbb543afa Mon Sep 17 00:00:00 2001 From: jenly1314 Date: Mon, 1 Jul 2019 15:43:17 +0800 Subject: [PATCH] CI --- .circleci/config.yml | 27 ++++++++++++++++++++++++++ .idea/caches/build_file_checksums.ser | Bin 590 -> 590 bytes README.md | 3 ++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..9dbb701 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,27 @@ +version: 2 +jobs: + build: + working_directory: ~/code + docker: + - image: circleci/android:api-28 + environment: + JVM_OPTS: -Xmx3200m + steps: + - checkout + - restore_cache: + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - 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: + path: app/build/reports + destination: reports + - store_test_results: + path: app/build/test-results \ No newline at end of file diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 2c12dc5529346b608970bdd48b55f9b582dd009d..a9d52d55d8935f23f3803a40f1e0af97302ffc74 100644 GIT binary patch delta 36 ucmV+<0Nel01kMDIm;|go81}K8a{&-Dy{@ymqvs~+O~F(rcy33N9|A8i&JWiB delta 36 ucmV+<0Nel01kMDIm;{(H>XfmZa{&;TFRNKpBe69u|DLGkh`jcb9|A8eh!BSW diff --git a/README.md b/README.md index c217279..7a1f80c 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,9 @@ ![Image](app/src/main/ic_launcher-web.png) [![Download](https://img.shields.io/badge/download-App-blue.svg)](https://raw.githubusercontent.com/jenly1314/ZXingLite/master/app/release/app-release.apk) -[![Jitpack](https://jitpack.io/v/jenly1314/ZXingLite.svg)](https://jitpack.io/#jenly1314/ZXingLite) +[![JitPack](https://jitpack.io/v/jenly1314/ZXingLite.svg)](https://jitpack.io/#jenly1314/ZXingLite) [![CI](https://travis-ci.org/jenly1314/ZXingLite.svg?branch=master)](https://travis-ci.org/jenly1314/ZXingLite) +[![CircleCI](https://circleci.com/gh/jenly1314/ZXingLite.svg?style=svg)](https://circleci.com/gh/jenly1314/ZXingLite) [![API](https://img.shields.io/badge/API-16%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=16) [![License](https://img.shields.io/badge/license-Apche%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) [![Blog](https://img.shields.io/badge/blog-Jenly-9933CC.svg)](http://blog.csdn.net/jenly121)