forked from sunbird-cb/sunbird-data-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.yml
More file actions
26 lines (25 loc) · 1.05 KB
/
config.yml
File metadata and controls
26 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 2.1
jobs:
datapipeline-build:
working_directory: ~/dp/data-pipeline-flink
machine:
image: ubuntu-2004:202008-01
steps:
- checkout:
path: ~/dp
- restore_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
- save_cache:
key: dependency-cache-{{ checksum "pom.xml" }}
paths: ~/.m2
- run: mvn clean scoverage:report
- run:
name: sonar
command: |
mvn -X sonar:sonar -Dlog4j.configuration=./logs sonar:sonar -Dsonar.projectKey=project-sunbird_sunbird-data-pipeline -Dsonar.organization=project-sunbird -Dsonar.exclusions=/home/circleci/dp/ansible/**,/home/circleci/dp/schema/**,/home/circleci/dp/pipelines/**,/home/circleci/dp/data-pipeline/**,/home/circleci/dp/kubernetes/**,/home/circleci/dp/test-data/**, -Dsonar.host.url=https://sonarcloud.io -Dsonar.scala.coverage.reportPaths=/home/circleci/dp/data-pipeline-flink/target/scoverage.xml
workflows:
version: 2.1
build_and_test:
jobs:
- datapipeline-build
#testing quality gate