From ebe129c083fe7cfd46115dad5dcddda04a41c7d2 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Thu, 13 Dec 2018 12:21:06 +0100 Subject: [PATCH] wip --- .travis.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9b7f5d88b..1b4a0c5cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,11 +13,6 @@ cache: directories: - $HOME/astyle -#useless? -#stages: -# - build -# - deploy - jobs: include: # Build stage. To save time, run all kinds of builds and tests in parallel. @@ -83,10 +78,8 @@ jobs: # Deploy stage. # Here we build the package JSON (always) and do the deployments - name: "Package / deploy" - # TRAVIS_PULL_REQUEST_BRANCH: - # if the current job is a pull request, the name of the branch from which the PR originated. - # if the current job is a push build, this variable is empty (""). - if: env(TRAVIS_PULL_REQUEST_BRANCH) = "" + # require the branch name to NOT be master (note for PRs this is the base branch name) + if: branch != master stage: deploy script: $TRAVIS_BUILD_DIR/tests/common.sh env: BUILD_TYPE=package