Files
Archive/igniter/.circleci/config.yml
2024-03-05 02:32:38 -08:00

38 lines
1.2 KiB
YAML

version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-30
environment:
JVM_OPTS: -Xmx4G
steps:
- checkout
- run:
name: Pull Submodules
command: git submodule update --init --recursive --remote
- run:
name: Download Go Libs
command: curl -L https://github.com/trojan-gfw/igniter-go-libs/releases/download/1.28/golibs.aar > app/src/libs/golibs.aar
- 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_test_results:
path: app/build/test-results
destination: test-results/
- run:
name: Initial build
command: ./gradlew clean assembleRelease --no-daemon --stacktrace
- store_artifacts:
path: app/build/outputs/apk/
destination: apks/