From 5184d04a8149167c0ee7d9e92c3f07a285c67538 Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 14 Jan 2019 13:55:36 +0800 Subject: [PATCH] Add Circle CI --- .circleci/config.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..abdf814 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,28 @@ +version: 2 +jobs: + build: + working_directory: ~/code + docker: + - image: shadowsocks/shadowsocks-android:circleci + environment: + JVM_OPTS: -Xmx3500m + GRADLE_OPTS: -Dorg.gradle.workers.max=1 -Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy="in-process" + steps: + - checkout + - run: git submodule update --init --recursive + - restore_cache: + key: jars-{{ checksum "build.gradle" }} + - run: + name: Run Build and Tests + command: ./gradlew assembleDebug check + - save_cache: + paths: + - ~/.gradle + - ~/.android/build-cache + key: jars-{{ checksum "build.gradle" }} + - store_artifacts: + path: app/build/outputs/apk + destination: apk + - store_artifacts: + path: app/build/reports + destination: reports