Skip to content

Commit fb9d271

Browse files
Changed circleci to use orbs
1 parent d890dea commit fb9d271

File tree

1 file changed

+14
-46
lines changed

1 file changed

+14
-46
lines changed

.circleci/config.yml

Lines changed: 14 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,14 @@
1-
# Java Gradle CircleCI 2.0 configuration file
2-
# See: https://circleci.com/docs/2.0/language-java/
3-
version: 2
4-
5-
# Define a job to be invoked later in a workflow.
6-
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
7-
jobs:
8-
build:
9-
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
10-
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
11-
docker:
12-
# specify the version you desire here
13-
- image: circleci/openjdk:8-jdk
14-
15-
# Specify service dependencies here if necessary
16-
# CircleCI maintains a library of pre-built images
17-
# documented at https://circleci.com/docs/2.0/circleci-images/
18-
# - image: circleci/postgres:9.4
19-
20-
working_directory: ~/repo
21-
22-
environment:
23-
# Customize the JVM maximum heap limit
24-
JVM_OPTS: -Xmx3200m
25-
TERM: dumb
26-
# Add steps to the job
27-
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
28-
steps:
29-
- checkout
30-
31-
# Download and cache dependencies
32-
- restore_cache:
33-
keys:
34-
- v1-dependencies-{{ checksum "build.gradle" }}
35-
# fallback to using the latest cache if no exact match is found
36-
- v1-dependencies-
37-
38-
- run: gradle dependencies
39-
40-
- save_cache:
41-
paths:
42-
- ~/.gradle
43-
key: v1-dependencies-{{ checksum "build.gradle" }}
44-
45-
# run tests!
46-
- run: gradle test
1+
# .circleci/config.yaml
2+
version: 2.1 # to enable orb usage, you must be using circleci 2.1
3+
# Declare the orbs you wish to use.
4+
# Android orb docs are available here: https://circleci.com/developer/orbs/orb/circleci/android
5+
orbs:
6+
android: circleci/android@1.0
7+
workflows:
8+
test:
9+
jobs:
10+
# This job uses the Android machine image by default
11+
- android/run-ui-tests:
12+
# Use pre-steps and post-steps if necessary
13+
# to execute custom steps before and afer any of the built-in steps
14+
system-image: system-images;android-31;default;x86

0 commit comments

Comments
 (0)