Skip to content

Commit 64e7d98

Browse files
committed
travis: run copr build only for the master branch
This is needed to avoid building into the @codescan/csdiff copr project upon a push to a non-master branch. Also, pull-requests against a non-master branch would be excluded, but they should be rare. Drop the -x flag from the Travis build. That PR webhook isn't private information but still.. It is better to not make a honeypot from all our Travis logs.
1 parent a8aa18b commit 64e7d98

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ matrix:
1919
dist: focal
2020
env:
2121
- COPR_BUILD=yes
22+
if: branch = master
2223

2324
install:
2425
- sudo apt-get install cmake help2man libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev

.travis/copr-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /bin/bash -x
1+
#! /bin/bash
22

33
# Trigger the build in Copr (from .travis.yml)
44

0 commit comments

Comments
 (0)