Skip to content

Commit

Permalink
added bintray files
Browse files Browse the repository at this point in the history
  • Loading branch information
florent37 committed Feb 20, 2018
1 parent 0391535 commit d34d419
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
80 changes: 80 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
version: 2.0

references:
workspace: &workspace
~/shapeofview

config_android: &config_android
working_directory: *workspace
docker:
- image: circleci/android:api-27-alpha
environment:
TERM: dumb

config_gcloud: &config_gcloud
working_directory: *workspace
docker:
- image: google/cloud-sdk:latest
environment:
TERM: dumb

cache_key: &cache_key
key: jars-{{ checksum "build.gradle" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
restore_cache: &restore_cache
restore_cache:
<<: *cache_key
save_cache: &save_cache
save_cache:
<<: *cache_key
paths:
- ~/.gradle/caches
- ~/.gradle/wrapper

persist_to_workspace: &persist_to_workspace
persist_to_workspace:
root: .
paths:
- ftl-tests
- build
attach_workspace: &attach_workspace
attach_workspace:
at: *workspace

jobs:
build:
<<: *config_android

steps:
- checkout
- *restore_cache

- run:
name: Compile
command: ./gradlew assemble assembleAndroidTest --no-daemon
- store_artifacts:
path: build/outputs/aar
- store_artifacts:
path: build/libs
- store_artifacts:
path: build/distributions/

- run:
name: JVM Tests & Lint
command: ./gradlew check --no-daemon
- store_test_results:
path: build/test-results
- store_artifacts:
path: build/test-results
- store_artifacts:
path: build/reports/lint-results.html
- store_test_results:
path: build/reports

- *save_cache
- *persist_to_workspace

workflows:
version: 2
build_and_test:
jobs:
- build
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d34d419

Please sign in to comment.