Skip to content

Commit

Permalink
travis: Add variable needed to run static checks
Browse files Browse the repository at this point in the history
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: kata-containers#342.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
  • Loading branch information
chavafg committed Aug 29, 2018
1 parent ed54087 commit 157f1c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ go_import_path: github.com/kata-containers/agent
go:
- "1.10.x"

env:
- target_branch=$TRAVIS_BRANCH

before_script:
- ".ci/static-checks.sh"

Expand Down

0 comments on commit 157f1c1

Please sign in to comment.