File tree Expand file tree Collapse file tree 1 file changed +37
-5
lines changed
Expand file tree Collapse file tree 1 file changed +37
-5
lines changed Original file line number Diff line number Diff line change 1+ # Java Gradle CircleCI 2.0 configuration file
2+ #
3+ # Check https://circleci.com/docs/2.0/language-java/ for more details
4+ #
15version : 2
26jobs :
37 build :
4- working_directory : ~/spotify-web-api-kotlin
58 docker :
6- - image : gradle
9+ # specify the version you desire here
10+ - image : circleci/openjdk:8-jdk
11+
12+ # Specify service dependencies here if necessary
13+ # CircleCI maintains a library of pre-built images
14+ # documented at https://circleci.com/docs/2.0/circleci-images/
15+ # - image: circleci/postgres:9.4
16+
17+ working_directory : ~/repo
18+
19+ environment :
20+ # Customize the JVM maximum heap limit
21+ JVM_OPTS : -Xmx3200m
22+ TERM : dumb
23+
724 steps :
825 - checkout
9- - run :
10- name : Run Tests
11- command : ./gradlew test -PclientId=$SPOTIFY_CLIENT_ID -PclientSecret=$SPOTIFY_CLIENT_SECRET
26+
27+ # Download and cache dependencies
28+ - restore_cache :
29+ keys :
30+ - v1-dependencies-{{ checksum "build.gradle" }}
31+ # fallback to using the latest cache if no exact match is found
32+ - v1-dependencies-
33+
34+ - run : gradle dependencies
35+
36+ - save_cache :
37+ paths :
38+ - ~/.gradle
39+ key : v1-dependencies-{{ checksum "build.gradle" }}
40+
41+ # run tests!
42+ - run : gradle test -PclientId=$SPOTIFY_CLIENT_ID -PclientSecret=$SPOTIFY_CLIENT_SECRET
43+
You can’t perform that action at this time.
0 commit comments