.circleci/config.yml in instana-1.201.0 vs .circleci/config.yml in instana-1.202.0
- old
+ new
@@ -130,27 +130,35 @@
bundle config set path './vendor/bundle'
- run:
name: Install Depdendecies
command: |
bundle check || bundle install
- run_tests:
+ run_sonarqube:
steps:
- run:
- name: Run Tests
+ name: Install Java
command: |
- bundle exec rake
+ sudo apt-get install openjdk-11-jdk
- run:
name: Run SonarQube to capture coverage
command: |
wget -O /tmp/sonar-scanner-cli.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216.zip
unzip -d /tmp /tmp/sonar-scanner-cli.zip
/tmp/sonar-scanner-4.5.0.2216/bin/sonar-scanner \
-Dsonar.projectKey=ruby-sensor \
-Dsonar.sources=. \
-Dsonar.host.url="${SONARQUBE_URL}" \
- -Dsonar.login="${SONARQUBE_LOGIN}" \
- -Dsonar.ruby.coverage.reportPaths=coverage/coverage.json
+ -Dsonar.login="${SONARQUBE_LOGIN}"
+ run_tests:
+ steps:
+ - run:
+ name: Run Tests
+ command: |
+ mkdir _junit
+ bundle exec rake
+ - store_test_results:
+ path: ~/_junit
run_rubocop:
steps:
- run:
name: Run Tests
command: |
@@ -199,9 +207,10 @@
executor: ruby_27
steps:
- checkout
- setup
- run_rubocop
+ - run_sonarqube
publish:
executor: ruby_27
steps:
- checkout
- setup