aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
blob: e53cfba1656094e2fb037ff4f8e698b32bbdd1de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -v

set -euo pipefail

function configureTravis {
  mkdir -p ~/.local
  curl -sSL https://github.com/SonarSource/travis-utils/tarball/v57 | tar zx --strip-components 1 -C ~/.local
  source ~/.local/bin/install                                                                                                                                    
}
configureTravis

export DEPLOY_PULL_REQUEST=true

# When a pull request is open on the branch, then the job related
# to the branch does not need to be executed and should be canceled.
# It does not book slaves for nothing.
# @TravisCI please provide the feature natively, like at AppVeyor or CircleCI ;-)
cancel_branch_build_with_pr || exit 0

regular_mvn_build_deploy_analyze -Pdist-linux,dist-windows,dist-macosx