Closed defagos closed 2 years ago
Danger can be used to report UT failure directly in GitHub comments. Some useful resources:
Since we are in a self-hosted CI scenario we need to:
See CI setup for the variables to provide.
I didn't clean the previous reports but pointed at the correct JUnit output instead.
To document for Danger integration:
Required on TeamCity before running Danger:
export GITHUB_REPO_SLUG=SRGSSR/pillarbox-apple
export GITHUB_REPO_URL=https://github.com/SRGSSR/pillarbox-apple
export GITHUB_PULL_REQUEST_ID=4
PR must be dynamic, of course.
The PR might be retrieved directly with teamcity.pullRequest.number
but this might require special care when configuring the pull request plugin.
Jazzy is a bit too old to be integrated. Skipped.
I could not make spellchecking with proselint
and mdspell
work because of version conflicts. Skipped.
Using bundle install --path vendor/bundle
is deprecated but the suggested replacement, namely setting bundle config set --local path 'vendor/bundle'
first, leads to issues with fastlane:
bundler: failed to load command: fastlane (/Users/defagos/Developer/repositories/pillarbox-apple/vendor/bundle/ruby/3.1.0/bin/fastlane)
/Users/defagos/Developer/repositories/pillarbox-apple/vendor/bundle/ruby/3.1.0/gems/fastlane-2.208.0/fastlane/lib/fastlane/junit_generator.rb:13:in `read': No such file or directory @ rb_sysopen - /Users/defagos/Developer/repositories/pillarbox-apple/vendor/bundle/ruby/3.1.0/gems/fastlane-2.208.0/fastlane/lib/assets/report_template.xml.erb (Errno::ENOENT)
So for the moment I used neither.
Won't add a command to register testers, not so cumbersome and can be done with pilot if later needed.