Updates to ensure only the build branch is auto-built. For reals this

time.
This commit is contained in:
casey langen 2017-12-18 21:43:28 -08:00
parent e7374b793a
commit df4e8d22e9

View File

@ -3,9 +3,6 @@ jobs:
build_ubuntu_xenial:
docker:
- image: ubuntu:xenial
branches:
only:
- build
steps:
- checkout
- run: apt-get update
@ -20,9 +17,6 @@ jobs:
build_ubuntu_artful:
docker:
- image: ubuntu:artful
branches:
only:
- build
steps:
- checkout
- run: apt-get update
@ -37,9 +31,6 @@ jobs:
build_ubuntu_zesty:
docker:
- image: ubuntu:zesty
branches:
only:
- build
steps:
- checkout
- run: apt-get update
@ -54,9 +45,6 @@ jobs:
build_fedora_26:
docker:
- image: fedora:26
branches:
only:
- build
steps:
- checkout
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm rpm-build rpmdevtools 'dnf-command(builddep)'
@ -71,9 +59,6 @@ jobs:
build_fedora_27:
docker:
- image: fedora:27
branches:
only:
- build
steps:
- checkout
- run: dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm rpm-build rpmdevtools 'dnf-command(builddep)'
@ -86,12 +71,18 @@ jobs:
- store_artifacts:
path: /root/rpms/
workflow_filters: &workflow_filters
filters:
branches:
only:
- build
workflows:
version: 2
build_and_package:
jobs:
- build_ubuntu_artful
- build_ubuntu_zesty
- build_ubuntu_xenial
- build_fedora_26
- build_fedora_27
- build_ubuntu_artful: *workflow_filters
- build_ubuntu_zesty: *workflow_filters
- build_ubuntu_xenial: *workflow_filters
- build_fedora_26: *workflow_filters
- build_fedora_27: *workflow_filters