Skip to content

Commit c753b18

Browse files
committed
Run the test excluding scrivito tag, if build from forked repo
1 parent fdc2474 commit c753b18

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ cache:
1818
- bundler
1919
script:
2020
- bundle exec rake db:migrate --trace
21-
- bundle exec rake
21+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then SCRIVITO_TEST=true bundle exec rspec spec; fi'
22+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_PULL_REQUEST_SLUG" = "coderdojo-japan/coderdojo.jp" ]; then SCRIVITO_TEST=true bundle exec rspec spec; fi'
23+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_PULL_REQUEST_SLUG" != "coderdojo-japan/coderdojo.jp" ]; then bundle exec rspec spec --tag ~@scrivito; fi'
2224
env:
2325
global:
2426
- TZ='Asia/Tokyo'

0 commit comments

Comments
 (0)