1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-21 19:20:07 +02:00

Exempt API builds from LuaCheck, have API builds deploy

This commit is contained in:
plague006 2019-02-03 13:18:33 -05:00
parent 52ed2d8cce
commit 1721cd3cb5

View File

@ -14,7 +14,7 @@ before_install:
install:
- luarocks install luacheck
script:
- "if [[ $TRAVIS_EVENT_TYPE != 'cron' ]]; then luacheck .; fi"
- "if [[ $TRAVIS_EVENT_TYPE != 'cron' && $TRAVIS_EVENT_TYPE != 'api' ]]; then luacheck .; fi"
before_deploy:
- git config --local user.name "$github_user_name"
- git config --local user.email "$github_user_email"
@ -30,7 +30,7 @@ before_deploy:
- ./.travis/release_builder.sh
deploy:
on:
condition: $TRAVIS_EVENT_TYPE = cron
condition: $TRAVIS_EVENT_TYPE = cron || $TRAVIS_EVENT_TYPE = api
repo: Refactorio/RedMew
branch: develop
provider: releases