Skip to content

Commit f96b397

Browse files
committed
CircleCI Commit
1 parent c15d7e5 commit f96b397

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This config was automatically generated from your source code
2+
# Stacks detected: cicd:github-actions:.github/workflows,deps:java:.,deps:python:.,tool:gradle:
3+
version: 2.1
4+
orbs:
5+
python: circleci/python@2
6+
jobs:
7+
test-java:
8+
docker:
9+
- image: cimg/openjdk:17.0
10+
steps:
11+
- checkout
12+
- run:
13+
name: Calculate cache key
14+
command: |-
15+
find . -name 'pom.xml' -o -name 'gradlew*' -o -name '*.gradle*' | \
16+
sort | xargs cat > /tmp/CIRCLECI_CACHE_KEY
17+
- restore_cache:
18+
key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }}
19+
- run:
20+
command: ./gradlew check
21+
- store_test_results:
22+
path: build/test-results
23+
- save_cache:
24+
key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }}
25+
paths:
26+
- ~/.gradle/caches
27+
- store_artifacts:
28+
path: build/reports
29+
test-python:
30+
# Install dependencies and run tests
31+
docker:
32+
- image: cimg/python:3.8-node
33+
steps:
34+
- checkout
35+
- python/install-packages
36+
- run:
37+
name: Run tests
38+
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
39+
- store_test_results:
40+
path: junit.xml
41+
deploy:
42+
# This is an example deploy job, not actually used by the workflow
43+
docker:
44+
- image: cimg/base:stable
45+
steps:
46+
# Replace this with steps to deploy to users
47+
- run:
48+
name: deploy
49+
command: '#e.g. ./deploy.sh'
50+
- run:
51+
name: found github actions config
52+
command: ':'
53+
workflows:
54+
build-and-test:
55+
jobs:
56+
- test-java
57+
- test-python
58+
# - deploy:
59+
# requires:
60+
# - test-java
61+
# - test-python

0 commit comments

Comments
 (0)