Skip to content

Commit 1a4796a

Browse files
committed
Only check external links in Travis cron jobs
1 parent 7d61564 commit 1a4796a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language: ruby
66
rvm:
77
- 2.4.2
88
script:
9-
- bundle exec danger
9+
- ./bin/travis_script
1010
env:
1111
global:
1212
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true

Dangerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ error_messages = {
66
5 => 'Events out of order'
77
}
88

9-
system 'bundle exec rake'
9+
system 'bundle exec rake build verify_data'
1010

1111
fail message if message = error_messages[$?.exitstatus]
1212

bin/travis_script

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
4+
bundle exec rake build verify_data verify_html
5+
else
6+
bundle exec danger
7+
fi

0 commit comments

Comments
 (0)