Skip to content

Commit

Permalink
#227 add config for circle ci to build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
elKei24 committed Feb 4, 2021
1 parent 1aaed7a commit ad07f1e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2.1
orbs:
gradle: circleci/[email protected]
workflows:
backend:
jobs:
- build

jobs:
build:
environment:
# Configure the JVM and Gradle to avoid OOM errors
_JAVA_OPTIONS: "-Xmx3g"
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2"
docker:
- image: circleci/openjdk:11.0.3-jdk-stretch
working_directory: ~/backend
steps:
- run: pwd
- checkout:
path: ~
- run: ls -R
- restore_cache:
key: v1-gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- restore_cache:
key: v1-gradle-cache-{{ checksum "build.gradle.kts" }}
- run: ./gradlew build
- save_cache:
paths:
- ~/.gradle/wrapper
key: v1-gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- save_cache:
paths:
- ~/.gradle/caches
key: v1-gradle-cache-{{ checksum "build.gradle.kts" }}
- store_artifacts:
path: build/libs

0 comments on commit ad07f1e

Please sign in to comment.