build,circleci: change exclude pattern
authorEtienne Champetier <champetier.etienne@gmail.com>
Mon, 29 Oct 2018 01:48:23 +0000 (21:48 -0400)
committerEtienne Champetier <champetier.etienne@gmail.com>
Mon, 29 Oct 2018 02:01:58 +0000 (22:01 -0400)
Even when configured to only build PR, CircleCI always build the default branch
`only: /pull.*/` seems like a good idea, but it fails when:
- you are testing on the same repo, because github doesn't create a pull branch
- when your repo is configured, because it see the push on your repo,
prevent building this commit because it doesn't match the regexp, then when you
do the PR CircleCI doesn't work
In the end what we really want is `ignore: master`

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
.circleci/config.yml

index e15587c1eeea152b74315237410cfa58ba059c7a..509119505f4d40a9e38da2a9bd1b9a9dd8fab9d3 100644 (file)
@@ -7,7 +7,7 @@ jobs:
       - SDK_BASE_URL: "https://downloads.lede-project.org/snapshots/targets/ar71xx/generic"
       - SDK_FILE: "openwrt-sdk-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz"
     branches:
-      only: /pull.*/
+      ignore: master
     steps:
       - run:
           name: Download the SDK