Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Explicitly install danger binstub

Oliver Güntherac4c15791a90
diff --git a/.travis.yml b/.travis.yml
index 24fe9f9e98e..888f8563305 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -81,6 +81,7 @@ jobs:
script:
# Run the dangerfile and set up caching
# Run in one command to fail early
+ - bundle binstubs danger --force
- bash script/ci/dangerfile.sh && bash script/ci/db_setup.sh && bash script/ci/cache_prepare.sh
- stage: test
name: 'npm'
diff --git a/script/ci/dangerfile.sh b/script/ci/dangerfile.sh
index c1b25aa0c00..ce44cceea22 100755
--- a/script/ci/dangerfile.sh
+++ b/script/ci/dangerfile.sh
@@ -41,6 +41,6 @@ run() {
if [ -z "$DANGER_GITHUB_API_TOKEN" ]; then
echo "WARNING: Missing Dangerfile token. Dangerfile cannot be executed without it!"
else
- run "bundle exec danger --fail-on-errors=true"
+ run "./bin/danger --fail-on-errors=true"
fi