travis: Add variable needed to run static checks

Now that we support multiple branches, we changed how
static-checks.sh compares branches. We now need a
variable called $target_branch to make the correct
comparison when testing a PR.

Fixes: #663.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
Salvador Fuentes 2018-08-29 11:13:37 -05:00
parent a3038924fb
commit 414ddd17e8

View File

@ -17,6 +17,9 @@ go_import_path: github.com/kata-containers/runtime
go: go:
- "1.10.x" - "1.10.x"
env:
- target_branch=$TRAVIS_BRANCH
before_script: before_script:
- ".ci/static-checks.sh" - ".ci/static-checks.sh"