forked from Sagacify/sonar-scala
-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
25 lines (23 loc) · 824 Bytes
/
circle.yml
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
# Launch the build of the docker image
dependencies:
override:
- wget https://raw.githubusercontent.com/Sagacify/ci-tools/master/run-sonar.sh
- wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.5.zip
- unzip sonarqube-6.5.zip
- chmod +x run-sonar.sh
- ./run-sonar.sh check
- ./run-sonar.sh install
- mvn dependency:resolve
compile:
post:
- mvn -DskipTests=true package
- cp target/sonar-scala-plugin-*.jar sonarqube-6.5/extensions/plugins/
# Launch the test into the docker image
test:
override:
- ./sonarqube-6.5/bin/linux-x86-64/sonar.sh start
- mvn scoverage:report
- ./run-sonar.sh run
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;