From 87d2d67575f470883ab9869593e3acf463f93d99 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 20 Jun 2021 19:00:47 +0100 Subject: [PATCH] chore(makefile): add bootstrap targets for normal use and CI environments --- Brewfile.ci | 3 +++ Makefile | 17 +++++++++++++++++ requirements-ci.txt | 1 + 3 files changed, 21 insertions(+) create mode 100644 Brewfile.ci create mode 100644 requirements-ci.txt diff --git a/Brewfile.ci b/Brewfile.ci new file mode 100644 index 0000000..638e9f6 --- /dev/null +++ b/Brewfile.ci @@ -0,0 +1,3 @@ +# frozen_string_literal: true + +brew 'python' diff --git a/Makefile b/Makefile index dfb3a8a..a3351b1 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PIP := $(shell command -v pip3 || command -v pip) SOURCES := $(shell \ find * \ -not -path 'sources/*' \ @@ -40,6 +41,22 @@ SHELL := env \ # Default target .DEFAULT_GOAL := build +# +# Bootstrap +# + +bootstrap: bootstrap-brew +bootstrap-ci: bootstrap-brew bootstrap-brew-ci bootstrap-pip + +bootstrap-brew: + brew bundle + +bootstrap-brew-ci: + brew bundle --file Brewfile.ci + +bootstrap-pip: + $(PIP) install -r requirements-ci.txt + # # Tools # diff --git a/requirements-ci.txt b/requirements-ci.txt new file mode 100644 index 0000000..18ee57f --- /dev/null +++ b/requirements-ci.txt @@ -0,0 +1 @@ +dmgbuild